我并没有改密码,怎么进不去了mysql
刚装好的系统
[root@dbserver bin]# ./mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4 to server version: 3.22.29
Type 'help' for help.
mysql>
//可以进去
mysql> GRANT ALL PRIVILEGES ON *.* to 'root'@'localhost' identified by ''
-> ;
Query OK, 0 rows affected (0.00 sec)
mysql>exit
root@dbserver bin]# mysql
ash: mysql: command not found
root@dbserver bin]# ./mysql -u root -p
nter password:
RROR 1045: Access denied for user: 'root@localhost' (Using password: NO)
//现在怎么进不去了,是不是我执行的那步不小心改了密码