简体   繁体   中英

How To Connect mysql server from another machine in same lan

Hi all I have created a new web application in php/mysql. my using windows7 and xampp.. now i have another desktop application written in c# which is installed in another machine in same lan. For some reason that application needs to share mysql database with web application..... i googled for the solution .... there were few suggestion to change

bind-address = 0.0.0.0

in xampp/mysql/bin/my.ini and i did that but it is not still working i comment

skip-networking

enable-named-pipe

also change host = . to host = % but i could not connect.... is there any solution.... i have spend 8 hours searching here and there and trying different things but no luck.... also my firewalls are turned off

thanks in advance Surace

好吧,说,如果您使用的是192.168.0.x的LAN,那么在进行Web开发和mysql时,我过去所做的就是连接到192.168.0.2:3306(如果我使用的是不同的IP)地址,希望对您有帮助:)我从来没有使用过C#,因此如果没有用,我深感抱歉!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM