Fix table locking problem when mysqldump database with too many connections error
Example of mysqldump command:
mysqldump -u root -p'password' database > /home/backup.sql
So to fix this problem you need to access the mysql server configuration file "my.cnf" located in "/etc" using ssh vi command or ftp, then add the bellow codes then save it:
# THIS TO STOP TABLE LOCKING WHEN BACKUP DB USING MYSQLDUMP :
[mysqldump]
skip-opt
quick
single-transaction
skip-add-locks
extended-insert
Now restart your mysql server (using "service mysqld restart").
That's it now try to run your mysqldump and see the result, you'll notice a fast backup with no locking errors.
If you like this article, please share it on facebook, tweet it and +1 it to spread it :) !
Fix table locking problem when mysqldump database with too many connections error
Reviewed by Mhr
on
17:09
Rating:
No comments
No Backlinks please, Comments are under moderation !