日期:2014-05-16  浏览次数:20716 次

--skip-locking这个参数在那个参数文件中设置
我在mysql启动的时候, 在错误日志里面总是有一个warning  

[Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
不影响启动和mysql的正常使用 
 
这个--skip-locking参数在那个文件里面 ?
我在my.cnf里面查找也搜索不到

麻烦高手指点下 这个参数是在哪个文件里面的 我想重新设置一下 谢谢

下面是mysql-test.err文件中的启动log信息:
120720 09:40:12 mysqld_safe mysqld from pid file /usr/local/mysql/var/mysql-test.pid ended
120720 09:43:22 mysqld_safe Starting mysqld daemon with databases from /usr/local/mysql/var
120720 9:43:22 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
120720 9:43:22 InnoDB: Started; log sequence number 0 44233
120720 9:43:22 [Note] Event Scheduler: Loaded 0 events
120720 9:43:22 [Note] /usr/local/mysql/libexec/mysqld: ready for connections.
Version: '5.1.51-log' socket: '/tmp/mysql.sock' port: 3306 Source distribution

------解决方案--------------------
应该是在配置文件里面写的 

find / -name my.cnf 找找别的地方是否还有配置文件
------解决方案--------------------
在配置文件my.cnf中。
------解决方案--------------------
1) 你的服务启动命令中添加了参数。
2) 你的 my.ini 或者 my.cnf 中有这么一行。


首先先检查你的启动参数,
------解决方案--------------------
那用的就的 /etc/my.cnf