04 2023 档案

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

点击右上角即可分享
微信分享提示