[英]MySQL - Why is my innodb_force_recovery being shown as “unknown variable”
Okay firstly, i ran 好吧,我跑了
locate my.cnf
Which gave 哪个给了
/etc/mysql/my.cnf
This is also the default config location set by mysqld 这也是mysqld设置的默认配置位置
and then on editing the file my.cnf
adding under [mysql] 然后在[mysql]下编辑文件
my.cnf
[mysql]
innodb_force_recovery = 3
and then rebooting mysqld and trying to logon mysql -u root -p
然后重新启动mysqld并尝试登录
mysql -u root -p
i get an error saying 我说错了
mysql: unknown variable 'innodb_force_recovery=3'
Also on running show variables
同样在运行
show variables
i see this field 我看到这个领域
innodb_force_recovery = 0
I'm using Mysql 5.5.44
我正在使用Mysql
5.5.44
is there a particular reason this happens? 发生这种情况有什么特殊原因吗?
[mysql] section is used by mysql client. [mysql]部分由mysql客户端使用。
Set your option in [mysqld] section. 在[mysqld]部分中设置您的选项。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.