Hi
I have install mysql57-server on my freebsd 10.3 , and I move all of the old /old_db_dir to the new one, all of the privileaged have been changed
Starting mysql with no error:
But when I changed mysql root's password , it fails :
I can still login with old password , but the login prompt looks weired
Is the standard process for changed mysql password changed ?
I have install mysql57-server on my freebsd 10.3 , and I move all of the old /old_db_dir to the new one, all of the privileaged have been changed
chown –R mysq:mysql /new_db_dir
.Starting mysql with no error:
/usr/local/etc/rc.d/mysql-server start
Code:
Starting mysql.
/usr/local/etc/rc.d/mysql-server status
Code:
mysql is running as pid 4894.
ls -l /tmp/mysql.sock
Code:
srwxrwxrwx 1 mysql wheel 0 2月 14 11:52 /tmp/mysql.sock
sockstat -4l | grep mysql
Code:
mysql mysqld 4894 15 tcp4 127.0.0.1:3306 *:*
But when I changed mysql root's password , it fails :
mysqladmin -u root password 'mypassword'
Code:
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
I can still login with old password , but the login prompt looks weired
mysql -u root -p
Code:
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5
Server version: 5.7.17-log Source distribution
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
root@localhost [(none)]> show databases;
+---------------------+
| Database |
+---------------------+
| information_schema |
| isep2 |
| #mysql50#isep2.copy |
| mysql |
| performance_schema |
| roundcube |
| test |
+---------------------+
7 rows in set (0.04 sec)
root@localhost [(none)]>