Hi,
I have stored Mysql database in /var/lib/mysql location and now /var is about to reach its allocated space. Is there any way I can change the location and move the existing Mysql databases to new location?
Thanks,
Kailash
Hi,
I have stored Mysql database in /var/lib/mysql location and now /var is about to reach its allocated space. Is there any way I can change the location and move the existing Mysql databases to new location?
Thanks,
Kailash
This thread may help: http://forums.cpanel.net/showthread.php?t=71424
That thread also links to another thread that may help.
cd /var/lib
service chkservd stop
service mysql stop
mv mysql /home
ln -s /home/mysql mysql
service mysql start
service chkservd start
That is the way I do it. Use at your own risk. I think I have ln -s command correct.
Marty Hoskins
TLC Web Enterprises
Thanks David and Marty.
And sorry for the duplicate post.
Kailash
Will it create any problem taking cPnel backup (including MySQL databases) after changing the location of MySQL databases.
Thanks,
Kailash
Thanks Marty,
Kailash
Worked for me....
Thanks.![]()
Game Servers, Website hosting and Dedicated Servers
Freaks Network, Inc.
Joomla Site Design and Modules
http://www.mh2design.com