MySQL Forums
Forum List  »  Install & Repo

Move Data Files to a 2nd disk
Posted by: Salam ELIAS
Date: April 13, 2022 02:36AM

Hi, Currently I have my mySql data in var/lib/mysql. I added a 2nd disk, called data at mnt/salam/mySqlData/ to my box, copied
var/lib/mysql
to
mnt/salam/mySqlData/mysql
Changed the owner to mysql and my user to read and write.
Changed the datadir in my.cnf to reflect the new directory.
When I start mysqld it erros and refuses to start.
What else I should do? Thanks

Options: ReplyQuote


Subject
Written By
Posted
Move Data Files to a 2nd disk
April 13, 2022 02:36AM


Sorry, only registered users may post in this forum.

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.