安装MYSQL后用Root登录显示拒绝访问 Access denied for user ‘root‘@‘localhost‘ (using password: NO) (已解决) 百分之百有用
安装MYSQL后用Root登录显示拒绝访问解决办法
使用改名吗的办法 编辑/etc/my.cnf文件
在[mysqld]下面添加一条命令:skip-grant-tables
创建一个用户
– username:用户名称
– %:是通配符指的是任意IP,这个位置也可以指定特定的ip,或者localhost代表本机才可以登录
create user ‘username’@‘localhost’ identified by ‘password’;
create user ‘username’@’%’ iden
原创
2021-12-30 17:15:43 ·
10150 阅读 ·
2 评论