windowsServer 安装mysql57
2021-04-12 本文已影响0人
ttw076

- 配置服务器

- 开机启动

- 显示之前的配置

-
配置环境变量
C:\Program Files\MySQL\MySQL Server 5.7\bin -
查看服务器是否启动
netstat -ano | findstr 3306 -
命令进入mysql
mysql -u root -p

- 别的机器连接报错

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;