Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Jun 2006
    Posts
    25

    Default Remote Mysql

    Hi,

    I have just installed and configured a remote mysql server on a separate server with mysql disabled on the local server. What options should i use in the apache recompile now on the local server.

  2. #2
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,300
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Hi manan,

    Have you already setup the Remote MySQL through WHM to connect to that machine? I'm not certain you would need to change anything in EasyApache for the setup. The only thing I can think is that you would likely want to change "Update Preferences" area in WHM to have for mysql "Never" rather than "Inherit" since you won't be running MySQL locally.

    Thanks.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  3. #3
    Member
    Join Date
    Jun 2006
    Posts
    25

    Default

    Hi,

    Thanks for the reply. It is connected to the remote mysql but in phpinfo it shows the mysql of the local system and not the remote one, how would i change that to compile against the mysql of remote system or do i need to change some settings in the php of the local server so that it shows the remote configuration. Should i keep the option for mysql selected in recompile or remove them.
    Last edited by manan; 10-24-2010 at 03:54 PM.

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jun 2004
    Posts
    313
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    I'm guessing you're getting the idea that PHP is configured for the local server when you read the MYSQL_SOCKET value in the phpinfo. This however is irrelevant as when you connect to MySQL using your PHP scripts you must specify the address of the server you're connecting to. Since in your case the server is not local (e.g. not localhost), you must explicity pass the IP/hostname of the remote box. So as long as the remote MySQL server has been configured for access from your primary webserver box (as Tristan mentioned), then everything will work just fine.
    NDCHost (ProVPS): Xen VPS / Dedicated / Co-Location
    Contact us for your cPanel Licensing needs! We price match, provide better support, and take care of our customers!

Similar Threads & Tags
Similar threads

  1. not able to connect remote MySQL : Remote Database Access Hosts
    By crazyaboutlinux in forum Database Discussions
    Replies: 4
    Last Post: 10-05-2011, 03:55 PM
  2. Replies: 3
    Last Post: 09-13-2010, 02:36 PM
  3. Remote MySQL and /var/lib/mysql/mysql.sock
    By emechanic in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 12-02-2009, 01:08 PM
  4. Replies: 1
    Last Post: 09-17-2005, 12:32 AM
  5. Replies: 4
    Last Post: 12-24-2004, 10:00 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube