Current time: 05-02-2024, 09:15 AM Hello There, Guest! (LoginRegister)


Post Reply 
MySql on another Server
Author Message
RedSec Offline


Posts: 3
Joined: Jul 2007
Reputation: 0
Post: #1
MySql on another Server
Hi all,

I want to know how to get the sql is on another server.

So have the SQL server on the server 2 and the rest on the 1.

Thank youWink
05-08-2009 05:52 AM
Find all posts by this user Quote this message in a reply
timaaarrreee Offline
Junior Member
*

Posts: 17
Joined: Aug 2008
Reputation: 0
Post: #2
RE: MySql on another Server
(05-08-2009 05:52 AM)RedSec Wrote:  Hi all,

I want to know how to get the sql is on another server.

So have the SQL server on the server 2 and the rest on the 1.

Thank youWink

I am doing this and everything works fine except for one thing. You just add the sql servers ip address in the /etc/hosts file with a hostname e.g sql.mydomain.com and you tell ipspCP the database host in the setup.

There is one problem however,

at 1pm server time an error gets sent out to the server admin saying the databases that you clients have don't exist on the localhost server (which is true! Because they are on another server Wink) I have added it as a bug.
05-10-2009 11:38 AM
Visit this user's website Find all posts by this user Quote this message in a reply
RedHeberg Offline
Junior Member
*

Posts: 29
Joined: Jun 2008
Reputation: 0
Post: #3
RE: MySql on another Server
With this configuration, all databases, even clients is on the second server? Thank youWink
05-11-2009 06:14 PM
Find all posts by this user Quote this message in a reply
timaaarrreee Offline
Junior Member
*

Posts: 17
Joined: Aug 2008
Reputation: 0
Post: #4
RE: MySql on another Server
No problem Wink hopefully the nightly check bug will be looked into to stop an email from each DB not existing on localhost
05-11-2009 06:19 PM
Visit this user's website Find all posts by this user Quote this message in a reply
RedSec Offline


Posts: 3
Joined: Jul 2007
Reputation: 0
Post: #5
RE: MySql on another Server
Great ^^

Very thanks Wink
05-12-2009 08:08 AM
Find all posts by this user Quote this message in a reply
pgentoo Offline
Member
*****
Dev Team

Posts: 326
Joined: Mar 2007
Reputation: 0
Post: #6
RE: MySql on another Server
I have an existing setup with one server, but am looking to break out mail/db into separate servers soon. I dont want to break existing client sites that are connecting to mysql through "localhost", via unix socket currently. How have you taken care of this? just force everyone to switch to using mysql.domain.com over TCP or something first, then make the actual migration later?

id be interested to hear what others have done... Smile
05-12-2009 04:20 PM
Find all posts by this user Quote this message in a reply
timaaarrreee Offline
Junior Member
*

Posts: 17
Joined: Aug 2008
Reputation: 0
Post: #7
RE: MySql on another Server
i have thought about this before and there might a way.

You could change the sql server config address In the bind-address line to your other sql host but i am not sure if that would work Rolleyes

But you could port foward 3306 on localhost to sqlserver.domain.com's ip possebly too but i have no idea how or if that is possible.

Someone might know.
05-13-2009 02:46 PM
Visit this user's website Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #8
RE: MySql on another Server
I would go the proxy route: http://forge.mysql.com/wiki/MySQL_Proxy
05-13-2009 04:33 PM
Visit this user's website Find all posts by this user Quote this message in a reply
pgentoo Offline
Member
*****
Dev Team

Posts: 326
Joined: Mar 2007
Reputation: 0
Post: #9
RE: MySql on another Server
killburn, this looks interesting. Thanks for the tip.

Do you use this today?
05-20-2009 01:31 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)