12/11/2023 0 Comments Centos mysql restart![]() # vi /etc/my.cnfįinally, restart the MySQL database. In the /etc/my.cnf file, you need to modify both datadir and socket parameter and point them to the new directory as shown below. If not, you might get this error message: MySQL error: 1017Can’t find file: (errno: 13) chown -R mysql:mysql /data But, when you move, the appropriate SELinux context for MySQL are kept in tact and you don’t have to worry about changing it.Īlso, if you’ve copied the directory (instead of move), make sure you change the ownership appropriately. When you perform copy, the SELinux context will be lost, and you have to manually set those later (as explained below). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |