Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2005
    Posts
    17
    Plugin Contributions
    0

    Default mySQL created & right password yet connection failed?

    Created mySQL database and right password yet connection failed.

    The help is only mentioning creating the database and user/pass. Do I need to add some sort of user to the mysql group?


    Code:
    root ~ # mysql -u root -p
    Enter password:
    Welcome to the MySQL monitor.  Commands end with ; or \g.
    Your MySQL connection id is 36
    Server version: 5.0.51a-24+lenny4 (Debian)
    
    Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
    
    mysql> create database zencart;
    Query OK, 1 row affected (0.01 sec)
    
    mysql> quit
    Bye
    Then

    Code:
    Connection to Database failed
    Lost connection to MySQL server at 'reading initial communication packet', system error: 111
    Using the same user & pass of course.

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

    Default Re: mySQL created & right password yet connection failed?

    Many hosts prepend the control panel user name to the database name on shared servers, so if your control panel user name is jago25, and your database name is store, Zencart will need jago25_store as the DB name in the configure files.

  3. #3
    Join Date
    Feb 2005
    Posts
    17
    Plugin Contributions
    0

    Default Re: mySQL created & right password yet connection failed?

    Quote Originally Posted by stevesh View Post
    Many hosts prepend the control panel user name to the database name on shared servers, so if your control panel user name is jago25, and your database name is store, Zencart will need jago25_store as the DB name in the configure files.
    I tend to prefer things on the command line but I'm happy to install a control panel (cpanel perhaps) if you think it would help this root VPS which I've installed from scratch

    -j

  4. #4
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: mySQL created & right password yet connection failed?

    Quote Originally Posted by jago25_98 View Post
    Do I need to add some sort of user to the mysql group?
    No, but you do need to create a zencart user/password and give them access priviliges to the zencart database that you created.

    It *is* possible to use the root user/password to obtain the databse access, but this is very bad practice and needs to be avoided at all costs (those on a shared server don't/won't have root access anyway, but I understand that you have a VPS).

    I can appreciate wishing to use the command line (I'm a great fan myself), but in all honesty, when it comes to MySQL I suggest you install phpMyAdmin and use this excellent tool for *all* of your database administration. You won't reget it.

    Cheers
    Rod

 

 

Similar Threads

  1. Service Connection Failed-The connection to the server was reset while page loading
    By notageek in forum Built-in Shipping and Payment Modules
    Replies: 1
    Last Post: 14 Sep 2015, 11:30 PM
  2. Help.... "Connection to Database failed - Can't connect to local MySQL"
    By chadwick in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 16 Nov 2009, 09:07 PM
  3. Checking ZenCart created Username & Password
    By schnechter in forum General Questions
    Replies: 0
    Last Post: 17 Nov 2006, 04:25 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR