Archive for the 'MySQL Database' Category

Turn on MySQL query cache to speed up query performance?

Wednesday, October 11th, 2006

Many times developers looking for ways to speed up query, in mysql we can enable query cache to speed up query performance. Whenever query cache is enable, it will cache the query in memory and boost query performance.
As we know, speed is always the most important element in developing a website especially for those high [...]

How to backup MySQL Database in command line with compression

Thursday, October 5th, 2006

For those who looking for way to backup mysql database,
you can use mysqldump to backup mysql database.
Below is the script example to backup mysql database in command line:-

$ mysqldump -h localhost -u username -p database_name > backup_db.sql

If your mysql database is very big, you might want to compress your sql file.
Just use the mysql backup [...]

How to restore MySQL database from sql dump file?

Tuesday, September 19th, 2006

There are 2 ways to restore your MySQL database from sql dump file.
1st way to restore mysql database from sql dump file is using mysql web control panel - phpMyAdmin
- Log into phpMyAdmin.
- Select your preference database on the left database navigation drop down list.