Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use command line after MySQLTuner #425

Closed
MalikKrak opened this issue Feb 28, 2019 · 6 comments
Closed

Can't use command line after MySQLTuner #425

MalikKrak opened this issue Feb 28, 2019 · 6 comments

Comments

@MalikKrak
Copy link

Hi

after I used MySQLTuner I can not use command line, for example I need change password of user, how to do that? DB is MariaDB 10.1.37

thanks

$ sudo mysql
mysql: unknown variable 'query_cache_size=0'
$ sudo mariadb
mysql: unknown variable 'query_cache_size=0'

@jmrenouard
Copy link
Collaborator

Modifications made are not placed in the right section.
query_cache_size placed in client or mysql section instead of server or mysqld section

@MalikKrak
Copy link
Author

So it is a bug in the MySQLTuner script ?

@jmrenouard
Copy link
Collaborator

No, it's a configuration section issue in your configuration file.

@MalikKrak
Copy link
Author

But CLI commands was working before I used this script.

@MalikKrak
Copy link
Author

because the error is

sudo mysql -u root -p
mysql: unknown variable 'query_cache_type=0'

and here is the part from mariadb.conf

# mysqltuner.pl
query_cache_type = 0
query_cache_size = 0
performance_schema = ON
innodb_log_file_size = 16M
innodb_buffer_pool_instances = 1

@solracsf
Copy link
Contributor

solracsf commented Apr 5, 2019

The script does not write anything to your server, it only reads and recommends. Period. The changes are up to you and you should apply them ONLY if you know what you are doing.

See also https://github.com/major/MySQLTuner-perl#warning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants