MySQL Forums
Forum List  »  Install & Repo

Re: After moving datadir, mysql won't start
Posted by: Lars Tangvald
Date: December 12, 2016 06:47AM

Hi,

This is the native 5.7 packages in Ubuntu, correct?
The issue is with the systemd service script there, which always checks for the default datadir (var/lib/mysql) instead of fetching it from the config.

There is a fix for this in Ubuntu 16.10 which will also be uploaded to 16.04 eventually, but it takes a bit longer to make changes in released LTS versions of Ubuntu.
For now, the workaround is to either change the systemd script or leave a copy of the database (or just an empty one) in /var/lib/mysql.

You can find more information about this issue at
https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1574782

Hope this helps!
--
Lars

Options: ReplyQuote


Subject
Written By
Posted
Re: After moving datadir, mysql won't start
December 12, 2016 06:47AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.