04 2023 档案
摘要:1,create user 'root'@'%' identified by 'passwd'; 2,flush privileges; 3,grant all privileges on *.* to 'root'@'%' ;
阅读全文
摘要:MySQL 5.7 的版本,因为在user表中没有password字段,一直使用下边的方式来修改root密码 use mysql; update user set authentication_string=password('root') where user='root' 现在要用MySQL8.
阅读全文
摘要:报错如下: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 解决方法: 1,vim /etc/my.cnf,在[mysql]下面加上skip-grant-tables,重启mysq
阅读全文