If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > MySQL > how can i connect mysql server with the server's IP but not localhost?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-01-04, 19:45
wenheping wenheping is offline
Registered User
 
Join Date: Apr 2004
Posts: 1
how can i connect mysql server with the server's IP but not localhost?

Now i can use command:
mysql -h localhost -u root -p
connect to mysql server.

But when i use command:
mysql -h 127.0.0.1 -u root -p
or:
mysql -h 10.0.0.1 -u root -p (10.0.0.1 is the IP of mysql server)
i failed,why? and how can do ?

Thanks.
Reply With Quote
  #2 (permalink)  
Old 04-07-04, 17:50
cpaul_it cpaul_it is offline
Registered User
 
Join Date: Jul 2003
Posts: 8
I typically use the command

mysql -h10.0.0.1 -u root -ppassword (where password is some password)

or

mysql -h10.0.0.1 -u root

if there is no password on the remote mysql server.

Also make sure mysql is currently running on the remote server.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On