2

Okay firstly, i ran

locate my.cnf

Which gave

/etc/mysql/my.cnf

This is also the default config location set by mysqld

and then on editing the file my.cnf adding under [mysql]

[mysql]
innodb_force_recovery = 3

and then rebooting mysqld and trying to logon mysql -u root -p

i get an error saying

mysql: unknown variable 'innodb_force_recovery=3'

Also on running show variables

i see this field

innodb_force_recovery = 0

I'm using Mysql 5.5.44

is there a particular reason this happens?

1 Answer 1

7

[mysql] section is used by mysql client.

Set your option in [mysqld] section.

0

Your Answer

Reminder: Answers generated by Artificial Intelligence tools are not allowed on Stack Overflow. Learn more

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.