Hi All,
Normally DirectAdmin stores mysql database in /var/lib/mysql.
Now I want to change my database folder to /data/mysql. I did as following: edit my.cnf and put 'datadir=/data/mysql'
It's seem to be OK but when I go to DirectAdmin "MySQL Management" an error happening: "Error connecting to MySQL: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)"
Then I can't create database via DirectAdmin because of that error.
Can anybody help me?
Thanks all,
Best Regards,
Normally DirectAdmin stores mysql database in /var/lib/mysql.
Now I want to change my database folder to /data/mysql. I did as following: edit my.cnf and put 'datadir=/data/mysql'
It's seem to be OK but when I go to DirectAdmin "MySQL Management" an error happening: "Error connecting to MySQL: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)"
Then I can't create database via DirectAdmin because of that error.
Can anybody help me?
Thanks all,
Best Regards,