Archive for the 'SQL' Category

How to monitor sql query in mysql?

Sunday, February 22nd, 2009

Monitor what sql query is running in mysql is very import for performance analysis. By monitor sql query, you are be able to know what is running at the backend. if your framework logs all sql queries then you can monitor from there, if not, you might need to turn on mysql log to monitor [...]

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 [...]