nooper February 2016

MySQL 5.7.11 mysql_secure_installation don't work

Linux version: Ubuntu 14.04.1 LTS Server version: 5.7.11 MySQL Community Server (GPL) Download from the link below: http://dev.mysql.com/downloads/repo/apt/

When I try to run mysql_secure_installation I set the password and reload all the tasks done. but When I try to login the mysql, It doesn't require the password for the root user.

>>>mysql 


mysql> select * from user;
+-----------+-----------+-------------+-------------+-------------+----    ---------+-------------+-----------+-------------+---------------+--------------+-----------+------------+-----------------+------------+------------+--------------+------------+-----------------------+------------------+--------------+-----------------+------------------+------------------+----------------+---------------------+--------------------+------------------+------------+--------------+------------------------+----------+------------+-------------+--------------+---------------+-------------+-----------------+----------------------+-----------------------+-------------------------------------------+------------------+-----------------------+-------------------+----------------+
| Host      | User      | Select_priv | Insert_priv | Update_priv | Delete_priv | Create_priv | Drop_priv | Reload_priv | Shutdown_priv | Process_priv | File_priv | Grant_priv | References_priv | Index_priv | Alter_priv | Show_db_priv | Super_priv | Create_tmp_table_priv | Lock_tables_priv | Execute_priv | Repl_slave_priv | Repl_client_priv | Create_view_priv | Show_view_priv | Create_routine_priv | Alter_routine_priv | Create_user_priv | Event_priv | Trigger_priv | Create_tablespace_priv | ssl_type | ssl_cipher | x509_issuer | x509_subject | max_questions | max_updates | max_connections | max_user_connections | plugin                | authentication_string                     | password_expired | password_last_changed         

Answers


nooper February 2016

I think the problems should be mysql.user in the column plugin, the variable name is auth_socket.

https://dev.mysql.com/doc/refman/5.7/en/pluggable-authentication.html https://dev.mysql.com/doc/mysql-security-excerpt/5.5/en/socket-authentication-plugin.html

If I want to change the authentication of the mysql user, please follow the steps in the below.

ALTER USER 'root'@'localhost' IDENTIFIED with mysql_native_password;
ALTER USER 'root'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;

That's should be work.

Post Status

Asked in February 2016
Viewed 1,158 times
Voted 7
Answered 1 times

Search




Leave an answer