标签:tables password 查看 ror run int emctl war iad
MariaDB 是 MySQL 的一个分支数据库。处理的办法和 MySQL 相同。
在 [mysqld] 追加配置项:
[root@node9 ~]# vim /etc/my.cnf
[root@node9 ~]# cat /etc/my.cnf
...
[mysqld]
skip-grant-tables
...
该示例使用的是 MariaDB,重启该服务并查看是否启动成功:
[root@node9 ~]# systemctl restart mariadb
[root@node9 ~]# systemctl status mariadb
[root@node9 ~]# mysql -uroot -p
MariaDB [mysql]> UPDATE user SET Password = password(‘48eb1c1c770d4bbc‘) WHERE User = ‘root‘ ;
Query OK, 4 rows affected (0.00 sec)
Rows matched: 4 Changed: 4 Warnings: 0
这边需要注意 password 必须需要写进来,否则修改不完全,报错信息如下:
[root@node9 ~]# mysql -uroot -p
MariaDB [mysql]> UPDATE user SET Password = ‘48eb1c1c770d4bbc‘ WHERE User = ‘root‘ ;
Query OK, 4 rows affected (0.00 sec)
Rows matched: 4 Changed: 4 Warnings: 0
...
[root@node9 ~]# mysql -uroot -p
Enter password:
ERROR 1275 (HY000): Server is running in --secure-auth mode, but ‘root‘@‘localhost‘ has a password in the old format; please change the password to the new format
...
标签:tables password 查看 ror run int emctl war iad
原文地址:http://www.cnblogs.com/vofill/p/6652758.html