View Full Version : Connecting to remote server (MySQL)
Well I am currently trying to connect to our forums MySQL from our main site.
I have allowed our server ID for the main site to access the MySQL.
When I replace "localhost" with the server ip of the forum, it dosn't connect.
Do I have to use another IP than the server IP? or do I have to add a port?
Cheers.
Agnostic Bear
03-07-2008, 11:53 AM
Well I am currently trying to connect to our forums MySQL from our main site.
I have allowed our server ID for the main site to access the MySQL.
When I replace "localhost" with the server ip of the forum, it dosn't connect.
Do I have to use another IP than the server IP? or do I have to add a port?
Cheers.
Are you sure remote mysql is enabled? also remote mysql is not really a good idea because of high ping.
Trinity
03-07-2008, 11:54 AM
Try this - http://www.webmasterworld.com/forum10/6141.htm
(third post from the bottom)
Are you sure remote mysql is enabled? also remote mysql is not really a good idea because of high ping.
The only way we can update infomation without having to create a new database.
It would help if the sites where hosted by the same host, but sadly, thats not the case :(
iUnknown
03-07-2008, 12:03 PM
If they're on the same host then you can use localhost .. and if remotely connecting isn't working then I suggest you put the forum and site on the same host.
Im just going to add the file on the forum server until the forums on the same server as site :P
iUnknown
03-07-2008, 12:18 PM
Im just going to add the file on the forum server until the forums on the same server as site :P
Haha yeah, easier solution.
Dentafrice
03-07-2008, 02:23 PM
Use Navicat for MySQL and go into cPanel and set the access host to your IP
http://www.tehupload.com/images/app-90146246375292273.png
Trigs
03-07-2008, 07:08 PM
Try adding :3306 to the end of the url (mySQL's port)
Example:
255.255.255.255:3306
Want to hide these adverts? Register an account for free!
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.