Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 11 of 11
  1. #1
    Member
    Join Date
    Mar 2011
    Posts
    14

    Default Database info

    I am installing Magento and I need the Database conection information. I have a database "magento" on my domain "claszi" and user "claszi"

  2. #2
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

    Default Re: Database info

    I am not quite sure what you are asking. You can create a database in cPanel, and the database name, database username, and password are what you provide to the site script installer. Can you explain in more detail what piece of information you are missing?
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  3. #3
    Member
    Join Date
    Mar 2011
    Posts
    14

    Default Magento Database connection

    I am trying to install Magento, I cannot connect to the database. I created the database with the MySQL wizard. The database is with the domain claszi.com and so is the user.

    Host: localhost
    Databese: claszi_magento
    User: (I own the server) root

    Every other option is default, but I keep getting database connection error. What am I doing wrong?
    Last edited by tostrye; 03-09-2011 at 08:38 AM.

  4. #4
    Member
    Join Date
    Jan 2011
    Posts
    505
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Magento Database connection

    Hey,

    Please do the below given steps.

    >> Enter mysql by typing the command mysql.
    >> After that grant privileges for the database over the user.

    Syntax : grant all privileges on database .* to user@localhost identified by 'password';

  5. #5
    Member
    Join Date
    Mar 2011
    Posts
    14

    Default Re: Magento Database connection

    I have all the priveledges, I still get the error.

  6. #6
    Member
    Join Date
    Mar 2011
    Posts
    14

    Default Re: Database info

    I'm not sure what I'm missing. I'm installing magento on the domain claszi.com
    Host: localhost
    Databese: claszi_magento
    User: (I own the server) root

    I have all privileges enabled and everything

  7. #7
    Member
    Join Date
    Jan 2011
    Posts
    505
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Magento Database connection

    Hey,

    Do your configuration file have the username, password and database info?

    One more thing, can you create another user than root from the cpanel and try again. I thinks it is causing the issue.
    Last edited by LinuxTechie; 03-09-2011 at 08:54 AM. Reason: Added info

  8. #8
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

    Default Re: Database info

    Quote Originally Posted by tostrye View Post
    I'm not sure what I'm missing. I'm installing magento on the domain claszi.com
    Host: localhost
    Databese: claszi_magento
    User: (I own the server) root
    Your site software should not be using the user root to connect to its database. You should instead be using the database user that you created in cPanel for the database. It appears you have already created a database; have you also created a user and assigned that user to the database? The user you create in cPanel is what you should be giving Magento to connect to its database, not root.

    The following annotated image from the MySQL Databases page may help you:

    http://i54.tinypic.com/332ry2p.png

    Also, you may find the following section of our documentation helpful:

    MySQL Databases
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  9. #9
    cPanel Staff cPanelJared's Avatar
    Join Date
    Feb 2010
    Location
    Houston, TX
    Posts
    1,066

    Default Friendly moderator note

    I merged your two threads seeking assistance on the same issue into a single thread, to get more exposure for your questions and consolidate replies into a single thread.
    For hands-on assistance, please reference our new support information page: Where should I go for support?
    cPResources: Support Options - Submit a ticket here - Additional Support Options - Forums Search - Mailing Lists(Alt) - Documentation


    -- Jared Ryan, Technical Analyst, cPanel Technical Support

  10. #10
    Registered User
    Join Date
    Apr 2011
    Posts
    1

    Default Re: Database info

    Hi, Having same issue, searching the web I have discovered a couple of possible issues, someone has mentioned for magento that the database name or password can not contain any characters, I think they are referring to the _ that appears to be tagged on the end, so first question, is there a way of removing this underscore??
    Last edited by ntslik; 04-05-2011 at 04:02 AM.

  11. #11
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Database info

    You could try to connect using the cPanel username and password instead for the script if Magento won't accept any underscore for it. The cPanel username and password should have a MySQL granted connection for any of the databases on your account.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

Similar Threads & Tags
Similar threads

  1. database question, info changed
    By HarleyRJ in forum Database Discussions
    Replies: 2
    Last Post: 03-14-2011, 04:52 PM
  2. Replies: 6
    Last Post: 12-21-2010, 12:19 PM
  3. mysql database login info lost
    By makan in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 10-31-2007, 09:38 PM
  4. Replies: 0
    Last Post: 05-29-2006, 12:31 PM
  5. Will Pay >> Create a MySQL database remotely with cPanel info?
    By Admin_user in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-07-2004, 04:15 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube