Jump to content

phpmyadmin(mysql)-how to find server ip address


zohab

Recommended Posts

Hi

 

I had used phpmyadmin(mysql) many times in my projects.

 

I connect to it as

server(ip address)

username

password

database name.

 

IT always get connect,but now instead of server ip address i have "localhost"

It is not getting connect through php code.

 

What need to do.

 

Please help.

 

Best regards

zohab

 

 

 

 

Thanks for your reply

 

It is working now.

I haven't done anything,it is working fine.

 

 

I would like to know,how can we find out IP address of server(database).

 

if we upload phpinfo(); on server , can we get database server ip address.

OR any other way to get IP addrees of server.

 

thanks and best regards

zohab

 

 

Guest prozente

this will get you the address

echo $_SERVER['SERVER_ADDR'];

 

if you're on linux you can also do

host -t a example.com

 

you can also go to

http://www.dnsstuff.com/

and look for "DNS Lookup"

enter the domain name, select A as the record type then click lookup

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.