Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Sep 2001
    Posts
    315

    Default Setup Remote MYSQL Server

    Hi

    I try to setup a remote mysql server on a standard centos installation. I installed already mysql and perl on this server and then tried the function in WHM to setup the remote server. But I get the following error message:

    Code:
    Using Remote mySQL Server
    Fetching password from remote mysql server.... Copying mysql configuration from remote host.....0%.. ..100%.. ...Done
    ...password set in /root/.my.cnf on remote server, it will be used...Done
    Generating Setup Script....Done
    
    Copying MySQL Script.....0%.. ..100%.. ...Done
    Running MySQL Script...
    
        Using 194.150.249.166 as the access ip
        Sync Source: http://httpupdate.cpanel.net/RELEASE-x86_64/scripts
        Fetching http://httpupdate.cpanel.net/cpanelsync/RELEASE-x86_64/scripts/.cpanelsync.lock (0)....@69.73.140.17......connected......receiving......Done
        Fetching http://httpupdate.cpanel.net/cpanelsync/RELEASE-x86_64/scripts/.cpanelsync.bz2 (1)....@69.73.140.17......connected......receiving...100%......Done
        Fetching http://httpupdate.cpanel.net/cpanelsync/RELEASE-x86_64/Cpanel/.cpanelsync.lock (0)....@69.73.140.17......connected......receiving......Done
        Fetching http://httpupdate.cpanel.net/cpanelsync/RELEASE-x86_64/Cpanel/.cpanelsync.bz2 (1)....@69.73.140.17......connected......receiving...100%......Done
        Sync Source: http://httpupdate.cpanel.net/RELEASE-x86_64/scripts
        Fetching http://httpupdate.cpanel.net/cpanelsync/RELEASE-x86_64/scripts/.cpanelsync.lock (0)....@69.73.140.17......connected......receiving......Done
        Fetching http://httpupdate.cpanel.net/cpanelsync/RELEASE-x86_64/scripts/.cpanelsync.bz2 (1)....@69.73.140.17......connected......receiving...100%......Done
        Fetching http://httpupdate.cpanel.net/cpanelsync/RELEASE-x86_64/Cpanel/.cpanelsync.lock (0)....@69.73.140.17......connected......receiving......Done
        Fetching http://httpupdate.cpanel.net/cpanelsync/RELEASE-x86_64/Cpanel/.cpanelsync.bz2 (1)....@69.73.140.17......connected......receiving...100%......Done
        Waiting for mysql to restart..............finished.
    
        mysqld_safe (/bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/mysqld.pid --user=mysql) running as root with PID 9974
        mysqld (/usr/libexec/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-external-locking --socket=/var/lib/mysql/mysql.sock) running as mysql with PID 10024
    
        mysql started ok
    
    Done
    Testing new mysql setup...Failed to connect to the remote mysql host:
    
    /usr/bin/mysqladmin: connect to server at '222.222.222.222' failed
    error: 'Lost connection to MySQL server at 'reading initial communication packet', system error: 113'
    Is there any special configuration or missing configuration on my side?

    Thanks
    Michael

  2. #2
    Member
    Join Date
    Dec 2007
    Posts
    15

    Default

    I'm not sure if you got an answer to your question, I see you posted this some time ago. However, I just had the same problem and it took me awhile to figure out what was wrong and I had run across this post while researching. In my case, the problem was incorrect data existing in /root/.my.cnf on the SQL server. The user/pass should be in there in plain text, the password I saw in mine looked like a hash of a password. I updated that file with the SQL servers root pass and then WHM was able to connect to it and authenticate. Hope that saves someone some time.

    --Mike

Similar Threads & Tags
Similar threads

  1. Setup Remote MySQL server
    By Maxence in forum New User Questions
    Replies: 14
    Last Post: 09-03-2011, 05:03 AM
  2. Remote mysql server setup - ssh for setup only?
    By Alcedema in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 10-08-2009, 02:29 PM
  3. Setup Remote Mysql Server
    By izmirhost in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-28-2008, 04:50 AM
  4. [Q] setup remote MySQL server
    By abdoh2010 in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 03-23-2006, 01:17 PM
  5. when i setup a remote mysql server..
    By allenhui in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 12-26-2003, 05:11 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube