Notes on Java, Solaris, PHP, LDAP…

June 13, 2008

Read-only dump of MySQL

Filed under: Java — negev @ 7:52 pm
Tags:

Sometimes I need to dump MySQL data from servers where I have read-only access. When I run standard mysqldump, then it fails because it tries to lock the tables. Here’s how to dump without locking:

/usr/local/mysql/bin/mysqldump -u my-user -h my-server -p -O lock-tables=FALSE db-name >db-dump.sql

No Comments Yet »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.