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 to connect to MySQL from my another server

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-18-04, 02:25
Mysticav Mysticav is offline
Registered User
 
Join Date: Apr 2004
Posts: 19
How to connect to MySQL from my another server

Hi,

I have MySQL installed in my PC, and some databases already working.

Also, I have a webpage, but it's not in my PC, I'm paying for the hosting.

They support PHP but not MySQL.

So, what I want to do is to run the PHP scripts in the webpage and pull information from MySQL installed in my PC.

As an example, my IP is : 201.132.130.140 (I'm running a Dynamic to Static IP software, so my domain will be:

lotes.com

$conn=mysql_connect("lotes.com",$user,$pass);

I connect with the root username = root@localhost

That doesn't work, I get ths simple error:

Warning: Can't connect to MySQL server on 'lotes.com'


Please help....
Reply With Quote
  #2 (permalink)  
Old 04-18-04, 11:47
ika ika is offline
Registered User
 
Join Date: Oct 2003
Location: Slovakia
Posts: 482
Re: How to connect to MySQL from my another server

Quote:
Originally posted by Mysticav
Hi,

I have MySQL installed in my PC, and some databases already working.

Also, I have a webpage, but it's not in my PC, I'm paying for the hosting.

They support PHP but not MySQL.

So, what I want to do is to run the PHP scripts in the webpage and pull information from MySQL installed in my PC.

As an example, my IP is : 201.132.130.140 (I'm running a Dynamic to Static IP software, so my domain will be:

lotes.com

$conn=mysql_connect("lotes.com",$user,$pass);

I connect with the root username = root@localhost

That doesn't work, I get ths simple error:

Warning: Can't connect to MySQL server on 'lotes.com'


Please help....
You need ti have user entry in users table (mysql database) with specified hostname or IP of remote machine. Check mysql documentation
Reply With Quote
  #3 (permalink)  
Old 04-19-04, 23:32
Mysticav Mysticav is offline
Registered User
 
Join Date: Apr 2004
Posts: 19
Please be more specific

Kindly,

Give me a better explanation, describe me the steps with real situation examples,

I will appreciate.

Thanks.
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