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

 

 

 

 

Link to comment
Share on other sites

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

 

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.