美文网首页
windowsServer 安装mysql57

windowsServer 安装mysql57

作者: ttw076 | 来源:发表于2021-04-12 16:01 被阅读0次
image.png
  • 配置服务器
S
  • 开机启动
image.png
  • 显示之前的配置
image.png
  • 配置环境变量
    C:\Program Files\MySQL\MySQL Server 5.7\bin

  • 查看服务器是否启动
    netstat -ano | findstr 3306

  • 命令进入mysql
    mysql -u root -p

image.png
  • 别的机器连接报错
image.png

1130 - Host 'xxx' is not allowed to connect to this MySQL server

解决方式:
myuser使用mypassword从任何主机连接到mysql服务器
grant all privileges on . to 'root'@'%' identified by 'Establishedxxx.' with grant option;

如果你想允许用户myuser从ip为192.168.1.3的主机连接到mysql服务器,并使用mypassword作为密码
grant all privileges on . to 'root'@'192.168.1.3' identified by 'Establishedxxx.' with grant option;

flush privileges;

相关文章

网友评论

      本文标题:windowsServer 安装mysql57

      本文链接:https://www.haomeiwen.com/subject/ucjxlltx.html