Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2007
    Location
    Amarillo, Tx
    Posts
    1,674
    Plugin Contributions
    0

    Default Unable to connect the database with new host.

    I have just moved my store to a new host I am trying reconfigure my configure.php file.

    Here is my database information:

    // define our database connection

    define('DB_TYPE', 'mysql');

    define('DB_PREFIX', '');

    define('DB_SERVER', 'localhost');

    define('DB_SERVER_USERNAME', 'hkeaton_giftshop2');

    define('DB_SERVER_PASSWORD', 'XXXXXXX');

    define('DB_DATABASE', 'hkeaton_giftshop2');

    define('USE_PCONNECT', 'false');

    define('STORE_SESSIONS', 'db');

    // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage


    I think I am missing a DB Prefix or something.

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Unable to connect the database with new host.

    If the name of your database is 'giftshop2' and your hosting account user name is 'hkeaton", and you created a DB user named 'giftshop2' that should be right. Otherwise, I'd guess you have the user name wrong.

    Usually, hosts prepend the CPanel user name to the DB name, and to any DB user you set up in the DB section.

 

 

Similar Threads

  1. v154 Unable to Connect to Database on New Install
    By mshultise in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 15 Jul 2015, 05:19 PM
  2. unable to access admin with new host
    By k4satin in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 17 Aug 2008, 09:58 PM
  3. Unable to connect to Database!
    By audiografix in forum General Questions
    Replies: 2
    Last Post: 11 Mar 2008, 06:43 PM
  4. Unable to connect to database...
    By Brian Flanagan in forum General Questions
    Replies: 4
    Last Post: 23 Feb 2008, 11:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg