Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find out mySQL server ip address from phpmyadmin

I have access to my server's phpmyadmin. But how can I find that mysql's Ip address from phpmyadmin. My webserver and mysql is using different IPs.

Is there any way to find this out?

like image 530
Crd007 Avatar asked Jun 26 '11 09:06

Crd007


People also ask

How do you find IP address in phpMyAdmin?

The SQL query SHOW VARIABLES WHERE Variable_name = 'hostname' will show you the hostname of the MySQL server which you can easily resolve to its IP address. SHOW VARIABLES WHERE Variable_name = 'port' Will give you the port number. Show activity on this post. Show activity on this post.

How do I find my database host in phpMyAdmin?

For connecting remotely using the IP address/domain of your MySQL database, open the Variables menu from your phpMyAdmin homepage and search for “hostname” to get the actual domain or IP address of the database server: The phpMyAdmin homepage can be accessed by clicking on the logo in the top-left corner.


1 Answers

The SQL query SHOW VARIABLES WHERE Variable_name = 'hostname' will show you the hostname of the MySQL server which you can easily resolve to its IP address.

SHOW VARIABLES WHERE Variable_name = 'port' Will give you the port number.

You can find details about this in MySQL's manual: 12.4.5.41. SHOW VARIABLES Syntax and 5.1.4. Server System Variables

like image 56
Waruna Manjula Avatar answered Sep 28 '22 00:09

Waruna Manjula