Banana Pup
Well-known member
I just added 2 Samsung SSD 120GB drives in RAID-1 to my dedicated server. I want to move MySQL to it but MySQL is failing to restart.
I did the following:
sudo mkdir /SSD/mysql
chown -R mysql:mysql /SSD/mysql
sudo cp -R /var/lib/mysql/* /SSD/mysql
opened /etc/my.cnf and since datadir didn't exist in the file I added
datadir = /SSD/mysql
restarting MySQL fails, only way to get it to start is to comment out datadir.
I did the following:
sudo mkdir /SSD/mysql
chown -R mysql:mysql /SSD/mysql
sudo cp -R /var/lib/mysql/* /SSD/mysql
opened /etc/my.cnf and since datadir didn't exist in the file I added
datadir = /SSD/mysql
restarting MySQL fails, only way to get it to start is to comment out datadir.