开发者

How to configure phpmyadmin for Lan in Xamp?

I am using Xampp.I am t开发者_C百科rying to access from another system in the LAN. And My Ip address 192.168.1.2.And When I am trying to connect

http://192.168.1.2/phpmyadmin

I got the phpmyadmin page.But when I am trying to connect using

mysql_connect('192.168.1.2','root','')

It throws an error

could not connect to database(10060)

I dont know why?Please helpme on this.


PHP is still running on the same server as mySQL. The 192.168.1.2 part is only for clients to connect to the server.

Use the local address to connect:

mysql_connect('127.0.0.1','root','')
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜