My var/lib/mysql default for mariadb was running out of space, and i wanted to move mysqldb to another partition with enough space. I used rsync to copy, and renamed the original /var/lib/mysql to mysql.bak to revert if there were issues (thank god i did!)
The move went well, updated my.cnf and zabbix config files, mariadb and zabbix started fine.
However the web front-end keep on reporting "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
I was forced to revert back to the original /var/lib/mysql but am having space issues, and want to move the databases (mysql and zabbix) - is there a way to do this? i thought my procedure would be fine - everything worked except the gui kept on reporting the problem while the back-ends were up and running.
The move went well, updated my.cnf and zabbix config files, mariadb and zabbix started fine.
However the web front-end keep on reporting "Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'
I was forced to revert back to the original /var/lib/mysql but am having space issues, and want to move the databases (mysql and zabbix) - is there a way to do this? i thought my procedure would be fine - everything worked except the gui kept on reporting the problem while the back-ends were up and running.
mysql.soc in correct place
Comment