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.

Having trouble with mysql_connect

Discussion in 'Database Discussions' started by pjcollis, May 7, 2014.

  1. pjcollis

    pjcollis Registered

    Joined:
    May 6, 2014
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Website Owner
    Hi everyone,

    I have just transferred my website - Removed - is a new host company - Removed -, loaded the MySQL database via phpMyadmin and have ftp'ed the .php and .js files to the server.

    I have amended the $dbhost, $dbuser and $dbpass values but can't get the format right. I think it should be something like :

    'mysql1.<domain-name>:<port>'

    My old string used to be 'mysql1.domain.com:3306'

    Any suggestions will be gartefully received.


    Regards,

    Pete Collis
     
    #1 pjcollis, May 7, 2014
    Last edited by a moderator: May 7, 2014
  2. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    569
    Likes Received:
    15
    Trophy Points:
    18
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    Are you sure it was mysql1 and not mysqli ? Is MySQLi installed on the new host? Since you're access level is listed as Website Owner, you should ask your new host what error messages appear in /usr/local/apache/logs/error_log
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...
Similar Threads - Having trouble mysql_connect
  1. ketan2net
    Replies:
    2
    Views:
    395

Share This Page