windows远程链接虚拟机ubuntu下MySQL数据库

xiaoxiao2021-02-28  51

找到mysql配置文件并修改

sudo vi /etc/mysql/mysql.conf.d/mysqld.cnf

将bind-address=127.0.0.1注释

登录mysql,运行命令 grant all privileges on *.* to 'root'@'%' identified by 'mysql' with grant option;

flush privileges;

重启mysql

windows控制台下远程登录:

转载请注明原文地址: https://www.6miu.com/read-59649.html

最新回复(0)