Discussion:
change mysql-server data directory in ubuntu 18.04
(too old to reply)
fugee ohu
2018-12-02 18:35:34 UTC
Permalink
In this guide I found https://www.digitalocean.com/community/tutorials/how-to-move-a-mysql-data-directory-to-a-new-location-on-ubuntu-16-04 the author says to rename /var/lib/mysql to /var/lib/mysql.bak but then a little further down the page he recreates the /var/lib/mysql/mysql directory which includes the renamed directory all over again Can someone please explain this to me
Luuk
2019-02-17 16:46:42 UTC
Permalink
Post by fugee ohu
In this guide I found https://www.digitalocean.com/community/tutorials/how-to-move-a-mysql-data-directory-to-a-new-location-on-ubuntu-16-04 the author says to rename /var/lib/mysql to /var/lib/mysql.bak but then a little further down the page he recreates the /var/lib/mysql/mysql directory which includes the renamed directory all over again Can someone please explain this to me
I think you have to ask Melissa (the writer of this article back in 2016
) for the answer...


Or you should stop reading 'old' articles on the internet, or only
follow trustworthy sites like:
https://stackoverflow.com/questions/1795176/how-to-change-mysql-data-directory


Or go back to the 'root':
https://dev.mysql.com/doc/refman/5.5/en/multiple-data-directories.html


But, remember, always make a good backup first ... ;)

Continue reading on narkive:
Loading...