Answer the question
In order to leave comments, you need to log in
How to transfer mariadb to another server?
Hello.
How can I move the database to another server?
There are only data files from /var/lib/mysql
When replacing this folder on the new server with the old one, mariadb refuses to start. There is nothing in the logs.
Answer the question
In order to leave comments, you need to log in
1) Check file permissions chown -R mysql:mysql /var/lib/mysql
2) Transferring files is not the best idea
Did you feed the same configuration as on the old server? If not, then do it if possible. I won’t say for mariadb, but mysql didn’t start, for example, if innodb_log_file_size in the config did not match the actual size.
The log should always be there, look where it goes in the config, check all the rights to it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question