[GRLUG] Moving MySQL Data Dir

Olding, Jim JOlding at gts.gaineycorp.com
Thu Oct 11 08:30:17 EDT 2007

Turns out it was a permissions error on the new directory that wasn't
allowing it to create the socket file.  It's up and running now.

-----Original Message-----
From: grlug-bounces at grlug.org [mailto:grlug-bounces at grlug.org] On Behalf
Of Godwin
Sent: Wednesday, October 10, 2007 8:37 PM
To: grlug at grlug.org
Subject: Re: [GRLUG] Moving MySQL Data Dir

Ownership/Permissions are generally the killer.  Check the
"/var/lib/mysql" directory and copy exactly ( cp -a /var/lib/mysql /db/
&& mv /var/lib/mysql /var/lib/mysql-bak ).  After you check those, make
a symbolic link from the old dir to the new ( ln -s /db/mysql /var/lib/
).  If it's just a matter of something not finding stuff, that should
tell ya.


More information about the grlug mailing list