该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
mysql数据库默认安装在/var/lib/mysql下,现在把数据库迁到/data/mysql下,启动报这个错误,是什么原因:
Warning: World-writable config file '/etc/my.cnf' is ignored
Starting MySQL.Warning: World-writable config file '/etc/my.cnf' is ignored
Warning: World-writable config file '/etc/my.cnf' is ignored
touch: cannot touch `/data/mysql/localhost.localdomain.err': Permission denied
chmod: cannot access `/data/mysql/localhost.localdomain.err': Permission denied
touch: cannot touch `/data/mysql/localhost.localdomain.err': Permission denied
chown: cannot access `/data/mysql/localhost.localdomain.err': Permission denied
/usr/bin/mysqld_safe: line 138: /data/mysql/localhost.localdomain.err: Permission denied
rm: cannot remove `/data/mysql/localhost.localdomain.pid': Permission denied
/usr/bin/mysqld_safe: line 182: /data/mysql/localhost.localdomain.err: Permission denied
touch: cannot touch `/data/mysql/localhost.localdomain.err': Permission denied
chown: cannot access `/data/mysql/localhost.localdomain.err': Permission denied
chmod: cannot access `/data/mysql/localhost.localdomain.err': Permission denied
/usr/bin/mysqld_safe: line 138: /data/mysql/localhost.localdomain.err: Permission denied