Closed Thread
Results 1 to 5 of 5

Thread: MySQL Error

  1. #1
    pvivekk's Avatar
    pvivekk is offline x10Hosting Member pvivekk is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    18

    MySQL Error

    Hello Support,

    I have recently installed opencart for my domain http://poduvalvivek.x10hosting.com/cart/ but I am getting the following error while accessing this URL.
    ~~~
    Warning
    : mysql_connect() [function.mysql-connect]: Lost connection to MySQL server at 'reading initial communication packet', system error: 111 in /home/pvivekk/public_html/cart/system/database/mysql.php on line 6
    Error: Could not make a database connection using pvivekk_opencart@mysql.x10hosting.com
    Warning: mysql_close(): supplied argument is not a valid MySQL-Link resource in /home/pvivekk/public_html/cart/system/database/mysql.php on line 65
    ~~~

    Please check and resolve it.

    Thank you.

    Regards,
    Vivek

  2. #2
    gomarc's Avatar
    gomarc is offline x10 Elder gomarc is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    USA
    Posts
    510

    Re: MySQL Error

    Are you using

    Database host: "localhost"
    Database Name: "pvivekk_opencart" ?

    If so, you may want to go to cPanel -> phpMyAdmin and make sure the database is there.

  3. #3
    pvivekk's Avatar
    pvivekk is offline x10Hosting Member pvivekk is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    18

    Re: MySQL Error

    Hello,

    Yes, it is present there. You could have verified this from the backend.
    ~~
    // DB
    define('DB_DRIVER', 'mysql');
    define('DB_HOSTNAME', 'mysql.x10hosting.com');
    define('DB_USERNAME', 'pvivekk_opencart');
    define('DB_PASSWORD', 'ax0or9lxqs');
    define('DB_DATABASE', 'pvivekk_opencart');
    define('DB_PREFIX', 'oc_');
    ~~

    Please try to reset the password. That should fix the issue.

    Thank you.

    Regards,
    Vivek
    Edit:
    Hello,

    I tried changing the HOSTNAME to localhost, but still the problem persist.

    Regards,
    Vivek
    Edit:
    Hello,

    I tried changing the HOSTNAME to localhost but still the problem persists.

    Regards,
    Vivek
    Last edited by pvivekk; 10-18-2009 at 01:49 AM. Reason: Automerged Doublepost

  4. #4
    gomarc's Avatar
    gomarc is offline x10 Elder gomarc is an unknown quantity at this point
    Join Date
    Oct 2007
    Location
    USA
    Posts
    510

    Re: MySQL Error

    Yes, it would be nice if I had backend access, but I don’t. I’m just another user like you! ;)

    Are you sure that the database exists? Have you created the database prior to the installation of the shopping cart?


    Note aside, if you posted the real password, you may want to change that right away!

  5. #5
    pvivekk's Avatar
    pvivekk is offline x10Hosting Member pvivekk is an unknown quantity at this point
    Join Date
    Nov 2007
    Posts
    18

    Re: MySQL Error

    Hello,

    Please do not reply to this thread except the support team.
    I have installed the cart using Softaculous, so there is no doubt about the database creation. Also I know cPanel well.
    So I expect all to be more familiar with the system we use. As a Linux administrator, I know what could be the fix for a particular error.
    Well regarding password, you said a valuable point.

    Regards,
    Vivek
    Edit:
    Hello Support,

    Also I tested the database connection and is working fine.
    URL : http://poduvalvivek.x10hosting.com/c...tabasetest.php

    This is one thread I got from google.
    http://forums.mysql.com/read.php?52,...970#msg-213970


    Regards,
    Vivek
    Edit:
    Hello Support,

    Also I tested the database connection and is working fine.
    URL : http://poduvalvivek.x10hosting.com/c...tabasetest.php

    This is one thread I got from google.
    http://forums.mysql.com/read.php?52,...970#msg-213970


    Regards,
    Vivek
    Last edited by pvivekk; 10-18-2009 at 03:40 AM. Reason: Automerged Doublepost

Closed Thread

Similar Threads

  1. MYSQL error
    By lightning yoshi in forum Free Hosting
    Replies: 1
    Last Post: 10-09-2009, 09:22 PM
  2. site Offline mysql error 111
    By ciellauren in forum Free Hosting
    Replies: 4
    Last Post: 10-09-2009, 12:56 PM
  3. Same mySQL error as "killers_clan"
    By banthewo in forum Free Hosting
    Replies: 1
    Last Post: 10-01-2008, 03:46 PM
  4. New Site-Suggestions?
    By mnoutside in forum Review My Site
    Replies: 9
    Last Post: 08-27-2008, 07:01 AM
  5. {req} Banners
    By SEÑOR in forum The Marketplace
    Replies: 23
    Last Post: 01-05-2006, 03:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers