Mysql 开通远程连接

第一步:找到MySQL安装路径bin目录

 第二步:打开cmd命,输入命令

 1:链接本机的mysql

mysql -uroot -p

 2:输入密码登陆进去后,输入如下的语句,执行,替换自己的用户名user和密码passward

grant all privileges on *.* to 'user'@'%' identified by 'passward' with grant option;

 3:刷新权限

flush privileges;

 

posted @ 2024-01-22 10:20  卡农的忧伤ろ◆  阅读(20)  评论(0编辑  收藏  举报