Reset
1
Hello!
I need to move mysql directory to other directory.
I try
- symlink ln -s /home/mysql /var/lib/mysql
- change database location in mysql config file
Database server starts fine, but when I try to login into panel I got
Server Error (500)
What is wrong?
maxin
2
never do symlink, does the /home and /var under different partitions?
the best method is to change the datadir instead
that means
stop the mysql and move /var/lib/mysql to /home
and edit the my.cnf and add the entry like
datadir=/home/mysql
after that restart mysql, all will be good then