Starting MySQL… ERROR! The server quit without updating PID file

Starting MySQL… ERROR! The server quit without updating PID file Sometimes you may see this error in your server. But don’t panic, just rename or move away the /etc/my.cnf in your server, and try to restart the MySQLd again.   [root@server:~ ] $ service mysqld start Starting MySQL… ERROR! The server quit without updating PID Continue reading “Starting MySQL… ERROR! The server quit without updating PID file”

Optimize only fragmented tables in MySQL

Normally I use myqlcheck -A –optimize to optimize my MySQL database tables. But this will load your whole database and use more time than optimize only fragment tables. I always use the MySQLTuner 1.1.1 – Major Hayden to check and optimize my database, and I found a lot of fragmented tables in my database. I Continue reading “Optimize only fragmented tables in MySQL”

How to view MySql running resources

If your server’s mysql always in high resources or down, I suggest you use this command to trace out which database that eat up your MySql resource /usr/bin/mysqladmin proc stat /usr/bin/watch -n 5 ‘mysqladmin proc stat’ Every 5.0s: mysqladmin proc stat Sat Aug 28 02:05:06 2010 +——+———-+———–+—-+———+——+——-+——————+ |  Id  |   User   | Host Continue reading “How to view MySql running resources”