Accesing XAMPP MySql Database from Another Computer

感情迁移 提交于 2019-11-28 10:26:16

Check you have enabled remote access to the MySQL server. Open the my.cnf file (probably found inside xampp/etc/), go to the [mysqld] section and add the following (using your own ip address instead of the example)

bind-address=192.168.1.100

If there is a line that says skip-networking, comment that out so it looks like this:

# skip-networking

then restart the MySQL server

It looks like your MySQL database isn't allowing you to connect remotely with the credentials you provided. You will need to configure a remote user to connect. Try looking into MySQL Grants.

For Example:

GRANT SELECT, INSERT ON database.* TO 'someuser'@'somehost';
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!