Results 1 to 3 of 3
  1. #1
    basic279's Avatar
    basic279 is offline Freshman
    Join Date
    Aug 2012
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default Error: Could not load database file mysql!

    Hello guys,
    I developed a website in OpenCart locally. Now, i have uploaded it to my web-hosting server. The front end of the e-shop loads properly but when i try to load backoffice or admin area, i am getting Error: Could not load database file mysql!

    my code is:
    // DB
    define('DB_DRIVER','mysql');
    define('DB_HOSTNAME','localhost');
    define('DB_USERNAME','kla_user');
    define('DB_PASSWORD','*****');
    define('DB_DATABASE','kla_db');
    define('DB_PREFIX','kla_')

    What could be the possible reason? i asked some friend and he told me that this sort of errors are basically driver errors...have your say and please help me to solve this.

  2. #2
    Oswald Joshua is offline Freshman
    Join Date
    Oct 2012
    Posts
    15
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Feedback Score
    0

    Default

    If this thing is working fine on your local machine and then it is your host's problem. Your host does not have mysql driver. Contact your host and they will be able to sort out your problem.

  3. #3
    johnny04 is offline Junior
    Join Date
    Feb 2012
    Posts
    198
    Thanks
    1
    Thanked 2 Times in 2 Posts
    Feedback Score
    0

    Default

    Quote Originally Posted by basic279 View Post
    Hello guys,
    I developed a website in OpenCart locally. Now, i have uploaded it to my web-hosting server. The front end of the e-shop loads properly but when i try to load backoffice or admin area, i am getting Error: Could not load database file mysql!

    my code is:
    // DB
    define('DB_DRIVER','mysql');
    define('DB_HOSTNAME','localhost');
    define('DB_USERNAME','kla_user');
    define('DB_PASSWORD','*****');
    define('DB_DATABASE','kla_db');
    define('DB_PREFIX','kla_')

    What could be the possible reason? i asked some friend and he told me that this sort of errors are basically driver errors...have your say and please help me to solve this.

    it could be that kla_db does not exists in your host server.. check if you have created the database and database user in your host server, also check if it's the correct name..

Similar Threads

  1. MySql Good Database why????????
    By tommydreamer in forum Databases
    Replies: 14
    Last Post: 03-20-2013, 09:04 AM
  2. import csv file into mysql
    By bgjyd834 in forum PHP
    Replies: 0
    Last Post: 09-13-2011, 06:01 AM
  3. connecting to mysql database
    By slanluc in forum PHP
    Replies: 4
    Last Post: 09-04-2011, 03:54 AM
  4. Vbulletin Database Error, SQL Error, Help Me...
    By intheghost1 in forum WebCosmo Forums
    Replies: 3
    Last Post: 02-20-2011, 09:43 AM
  5. Search Mysql database with “LIKE” or “FULLTEXT”?
    By divengrabber in forum Web Development - Programming & Coding
    Replies: 1
    Last Post: 08-24-2009, 11:25 AM

Tags for this Thread

Posting Permissions

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




Partners: BOSTON WEB DEVELOPER, LLC   |   WEBCOSMO CLASSIFIEDS