Notes on Java, Solaris, PHP, LDAP…

June 13, 2008

Read-only dump of MySQL

Filed under: Java — negev @ 7:52 pm

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


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at

%d bloggers like this: