unbutu上权限问题

时间:2025-03-12 11:03:26

从别的机器将拷贝到指定的机器上后,将权限粗暴的直接改为777,重新启动mysql发现无法启动,提示如下:

Warning: World-writable config file '/etc/' is ignored


这主要是权限问题,按照mysql的要求,需要将其权限改成644,即可。

 chmod 644  /etc/


在unbuntu终端上搜索,存在以下几个地方:

/etc/
/usr/local/mysql/mysql-test/suite/federated/
/usr/local/mysql/mysql-test/suite/rpl/
/usr/local/mysql/support-files/

这些文件的使用顺序可通过如下命令查询: ./mysqld --verbose --help | grep -A 1 'Default options'

Default options are read from the following files in the given order:
/etc/ /etc/mysql/ /usr/local/mysql/etc/ ~/.