Forum Moderators: coopster

Message Too Old, No Replies

How do I find out my database server in mySQL?

         

universetoday

7:58 pm on Sep 3, 2005 (gmt 0)

10+ Year Member



I want to connect to an external mysql database. Instead of "localhost", I need to put in the address of the database server. Is there a way within mySQL to find out what your database server address is?

mack

9:17 pm on Sep 3, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



By default mysql will only allow connections from Localhost. You will need to grant permission for the other host to connect to it.

Do you not know the address of your mysql server? You may be best to speak to your host or server provider, they will be able to tell you, your exact hostnames and ip addresses.

Mack.

grandpa

10:54 pm on Sep 3, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



You will need to grant permission for the other host to connect to it.

With our host (and many others I suspect) this comes with an additional fee.

mack

12:01 am on Sep 4, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



You may be correct. I am just used to shelling in and carrying out the procedure. I guess many hosts will indeed charge for this.

Mack.

universetoday

1:13 am on Sep 4, 2005 (gmt 0)

10+ Year Member



I've got a dedicated server with root access. I could do anything I like with my server, I just don't know how. :-)

mack

1:21 am on Sep 4, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



The address of mysql will be the same as the ip address if your server running mysql. Your server people should be able to tell you your exact ip.

To allow remote connection to connect to your mysql server you will need to run somethign like this...

GRANT ALL ON .* username@ip.add.re.ss IDENTIFIED BY 'password';

Mack.

pnllan

6:26 am on Sep 5, 2005 (gmt 0)

10+ Year Member



"I want to connect to an external mysql database. Instead of "localhost", I need to put in the address of the database server..."

I'm taking it that you have a physically 'local' DB server, and that you also have access to a external or remote DB server. If so, do you have physical access or not? If not, the person administering the external DB server should be able provide this INFO.