Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

The Database Forum


You are currently viewing our The Database Forum as a guest. Please register to participate.
Login



Reply
Old 03-24-2006, 02:40 PM mySQL Connection
Super Talker

Posts: 111
Trades: 0
Ok heres my issue.

My friend has a dedicated server at host A.

He also have a web server at host B.

He wants to connect to the mySQL server in host B to the mySQL server in host A.

BUT He doesnt know how to allow host B's IP to be connectable to host A


It's on a Windows Server 2003 OS so no cpanel.
He also don't have Plesk.

Any idea how to do this?

I'm guessing we have to do something with my.ini?
__________________

Please login or register to view this content. Registration is FREE
sixpacgenius is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-25-2006, 01:41 AM Re: mySQL Connection
Super Talker

Posts: 144
Trades: 0
i might be off base, but doesn't mysql store the allowed ip's or hosts in the mysql.user table? or something similar?
__________________
create.vibe

Please login or register to view this content. Registration is FREE
createvibe.com is offline
Reply With Quote
View Public Profile Visit createvibe.com's homepage!
 
Old 03-25-2006, 01:46 AM Re: mySQL Connection
Super Talker

Posts: 144
Trades: 0
... or would you use the GRANT command?

http://www.mysql.com/search/?q=GRANT&charset=

not sure w/ ver of mysql you're using.
__________________
create.vibe

Please login or register to view this content. Registration is FREE
createvibe.com is offline
Reply With Quote
View Public Profile Visit createvibe.com's homepage!
 
Old 03-26-2006, 12:19 PM Re: mySQL Connection
floridian's Avatar
Novice Talker

Posts: 9
Name: Sergey
Location: Florida
Trades: 0
Quote:
Originally Posted by sixpacgenius
Ok heres my issue.

My friend has a dedicated server at host A.

He also have a web server at host B.

He wants to connect to the mySQL server in host B to the mySQL server in host A.

BUT He doesnt know how to allow host B's IP to be connectable to host A


It's on a Windows Server 2003 OS so no cpanel.
He also don't have Plesk.

Any idea how to do this?

I'm guessing we have to do something with my.ini?

GRANT ALL PRIVILEGES ON eshop_db.* TO 'john'@'localhost' IDENTIFIED BY 'maxalt';
and press enter. New User 'john' with password 'maxalt' created.

Hi sixpacgenius,

You have to create user and grant him privileges

mysql> GRANT ALL PRIVILEGES ON my_db.* TO 'user'@'friendshostip' IDENTIFIED BY 'password';
Query OK, 0 rows affected (0.00 sec)


if you want to connect to db on yours and friends server on the same page

$db_link1=mysql_connect($hostname1, $dbuser1, $dbpassword1)
or die("Unable to connect to the server!");

mysql_select_db($dbname1, $db_link1)
or die("Unable to connect to the database");

$db_link2=mysql_connect($hostname2, $dbuser2, $dbpassword2)
or die("Unable to connect to the server!");

mysql_select_db($dbname2, $db_link2)
or die("Unable to connect to the database"); etc



For details visit http://www.configure-all.com and select MySQL from main menu

i

Good luck
floridian is offline
Reply With Quote
View Public Profile Visit floridian's homepage!
 
Old 04-14-2006, 04:13 AM Re: mySQL Connection
sacx13's Avatar
Experienced Talker

Posts: 32
Location: Here
Trades: 0
Do you want to connect or to replicate/ clustering ?

Regards
Adrian
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
sacx13 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to mySQL Connection
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.21213 seconds with 12 queries