开发者

How to configure phpmyadmin for Lan in Xamp?

开发者 https://www.devze.com 2023-01-22 21:09 出处:网络
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

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

精彩评论

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