扫码关注官方订阅号
2台电脑有分别安装MySQL数据库,如何让用户访问我的端口能访问第二台电脑的MySQL数据库,PHP连接数据库。
业精于勤,荒于嬉;行成于思,毁于随。
MySQL Proxy
可以用端口映射 ,iptables
更改被连接的mysql服务器1.mysql控制台 允许外部访问代码grant all privileges on . to root@"%" identified by 'abc' with grant option; flush privileges;2.重设mysql密码mysqladmin -u root password 1234563.更改my.ini找到mysqld部分,加入代码skip-grant-table
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
MySQL Proxy
可以用端口映射 ,iptables
更改被连接的mysql服务器
1.mysql控制台 允许外部访问代码
grant all privileges on . to root@"%" identified by 'abc' with grant option;
flush privileges;
2.重设mysql密码
mysqladmin -u root password 123456
3.更改my.ini找到mysqld部分,加入代码
skip-grant-table