Posts tagged with ‘MySQL Database’

Maximum length for MySQL TEXT field types

advertisement

mysqlJust gone thru the maximum length limit for different MySQL TEXT field types. I’m designing a table to store large amount of data within a field. To avoid data being truncated automatically, it’s good to know the maximum length limit for different MySQL TEXT field types.

Here’s the summary for maximum length limit for different MySQL TEXT field types:

Continue reading Maximum length for MySQL TEXT field types »

MySQL: Full text search for multiple words

advertisement

mysqlI notice one of my MySQL full text search result for multiple words doesnt seems correct. After some checking, i realize i don’t know how to do full text search for multiple words! LOL. This is because i use ONLY single words during testing. After go thru the MySQL documentation again, now i get a clear view of how to structure the SQL statement for full text search (multiple words)!

Here are some example for MySQL full text search for multiple words:-

Continue reading MySQL: Full text search for multiple words »

How to setup mysqldump without password in cronjob

advertisement

mysql, mysql databaseIf you execute mysqldump manually, mysqldump will prompt you for password. If you setup mysqldump via cronjob, you need to find a solution to disable the password. I’ve setup mysqldump to backup my db via cronjob without password. All you need to do is just to add a file in your home directory and it will disable the mysqldump password prompting.

To setup mysqldump without password in Cronjob, follow the steps below:-

Continue reading How to setup mysqldump without password in cronjob »