Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Jan 2004
    Posts
    11

    Default Backup / Restore / Remote MySQL problem

    OK I've got two problems here.

    I currently have web/DB on a single server.

    I just purchased 2 new servers, one for DB only one for cPanel/Web only.

    Well I configured the remote SQL.

    IP: IP of the machine
    Port: Non standard ssh port but I changed it
    Root Password.

    On the first run it got angry because the /scripts folder on the DB machine didn't exist, so I created it and then the initial setup seemed to run OK.

    I had to do some finangling and manual stuff to get the mysql root password set to the random string that cPanel was trying to set it to.

    Well, I tried to do a full backup of one of my accounts, and migrate it over.

    Everything went fine, except for the part where it did not create the databases for the backed up account, even though it reported in WHM that it did and imported them. It did load all the permissions for the user hosts and databases.

    And now even from the cPanel the user account cannot create a database. When I do MySQL Databases, put anything in to create one, it just says, Database Created, but it never actually creates it!!

    I assume whatever is causing cPanel users to not be able to create databases, is the same thing that kept the restore scripts from creating and importing said databases.

    Any ideas?

  2. #2
    Registered User
    Join Date
    May 2008
    Posts
    4

    Default

    yeah, check /usr/local/cpanel/logs/error_log for errors. I have the same problem, and the error message is:
    Tue Oct 28 14:33:50 2008 info [/usr/local/cpanel/bin/mysqladmin]: Creating MySQL database Cpanel::Mysql=HASH(0x87741d0) for user toon
    /usr/bin/mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: NO)'

    I don't understand why is trying to create the db on the localhost mysql server, as long as there is a remote MySQL server setup

  3. #3
    Registered User
    Join Date
    May 2008
    Posts
    4

    Default

    I fixed my problem by creating .my.cnf files for root with the same info on both servers. For the server where CPanel is installed the file looks like:

    [client]
    host="10.0.0.90"
    user="root"
    pass="passs"

    10.0.0.90 is the ip of the remote MySQL server.

    On the remote MySQL server, .my.cnf looks like:
    [client]
    user="root"
    pass="passs"

Similar Threads & Tags
Similar threads

  1. How do I restore from backup on remote FTP server?
    By ArbuZz in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-19-2008, 05:46 AM
  2. Restore from Remote Server Cpanel Backup
    By hostseeker in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 02-04-2006, 10:38 PM
  3. Problem with restore MySQL backup
    By jprl12 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-06-2005, 11:59 PM
  4. MySQL Backup/Restore Problem
    By derekivey in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-10-2005, 09:24 AM
  5. Remote backup, how to restore?
    By torwill in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 12-15-2004, 08:53 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube