The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MySQL Connections problems

Discussion in 'Database Discussions' started by darlanart, Sep 30, 2011.

  1. darlanart

    darlanart Well-Known Member

    Joined:
    Sep 15, 2011
    Messages:
    98
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    DataCenter Provider
    Hello,

    I'm have two problems...

    I cant connect with remotely MySQL Server. It seems that the server always wants to connect on localhost.
    An example:
    /http://192.168.110.24/~dapelle/php/home.php

    And the other problem is that, seems that PHP does not recognize the users of the MySQL database with "_", created by cPanel and the user tries to connect to the host. Example:

    /http://www.toastrestobar.com.br/teste_mysql.php

    Thanks!!
    Darlan
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    What do you have configured for MySQL host, database name, and database username in the configuration file of your PHP application? Feel free to use examples matching the information instead of the actual data.

    Thank you.
     
  3. darlanart

    darlanart Well-Known Member

    Joined:
    Sep 15, 2011
    Messages:
    98
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    DataCenter Provider
    Hello,

    Thanks for reply, but I alreday solved this problem.

    The cause was the sql.safe parameter in the php.ini

    Thanks a lot!
     
Loading...

Share This Page