Skip to main content

Remote MySQL Question - access denied

Comments

3 comments

  • Darkfox
    I tried to edit the topic to put in my questions, but the forum software wouldn't let me. My questions;
      ]
    • Which password is cPanel using to connect to the remote MySQL host? The root shell users password I specified for an SSH connection or the MySQL Root Password specified in WHM?
    • Is it a requirement to have the local MySQL server running in order to get the remote one working?
    • If a customer/user utilizes cPanel for a wordpress blog or similar, can they just use "localhost" as the database server when running through their wp-install script?
    0
  • Darkfox
    Have found the solution to my particular problem. For those that might find this from Google Searches, it's quinessential to have the following file with your root password securely stored in plaintext form: $ sudo cat /root/.my.cnf [client] user=root pass=fail After adding this file, I was then able to add the remote database. I was then able to remotely log into the mysql host; mysql -h 10.0.0.3 -u root -p then I could do show databases; and the new database I created showed up So this is resolved.
    0
  • cPanelMichael
    Hello :) I am happy to see the issue is now resolved. Note the following document should also help others setting up a remote MySQL server: Setup Remote MySQL Server - Documentation - cPanel Documentation Thank you.
    0

Please sign in to leave a comment.