Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Jul 2005
    Posts
    209

    Default remote mysql server don't work

    Hi,

    I set a remote server additional mysql db,

    I set IP remote server, I set password root of remote server and I try connect to this:


    $db_host = "IPREMOTESERVER";
    $db_user = "usernamerootserver";
    $db_password = "passwordrootserver";
    $db_name = "databasename";

    But I get a error permission denied

  2. #2
    Member
    Join Date
    Jan 2005
    Location
    Earth
    Posts
    1,050

    Default

    You will have to replace the db username/password with the one you have created and assigned to the database. If you haven't assigned a user to the database, you can either do it from the control panel you have or you can do it from Mysql prompt using the below command:

    GRANT ALL PRIVILEGES ON databse.* TO 'username'@'%' IDENTIFIED BY 'newpassword';

    Also you will have to check whether the other server allows remote access to databases.

Similar Threads & Tags
Similar threads

  1. Remote mysql. Old database don't show
    By pajeknet in forum Database Discussions
    Replies: 0
    Last Post: 10-11-2010, 02:36 PM
  2. cPAddon don't work with remote mysql server
    By apogee in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 04-11-2007, 02:17 PM
  3. i don`t have remote restore server
    By robocap in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 01-08-2007, 12:02 PM
  4. Mysql root password don't work
    By esupport.org.ua in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-08-2005, 07:58 AM
  5. Does phpMyAdmin work with a remote mysql server?
    By EdRooney in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 01-03-2005, 06:33 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube