1. 首页
  2. 数据库
  3. 其它
  4. 阿里云服务器windows安装mysql远程连接提示Host ‘x.x.x.x’ is not allowed to connect to this MySQL

阿里云服务器windows安装mysql远程连接提示Host ‘x.x.x.x’ is not allowed to connect to this MySQL

上传者: 2021-01-16 11:20:29上传 PDF文件 25.68KB 热度 14次
1、进入mysql的安装目录,在bin文件中打开CMD 2、输入 mysql -uroot -p 3、然后输入mysql密码 4、选择你使用的数据库,use use mysql 5、让用户‘root ’使用密码‘123456’能够从任何主机远程连接到mysql GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION; 6、刷新重启 FLUSH PRIVILEGES 作者:黑白cloud
下载地址
用户评论