beginners guide: create a magento database in cpanel · 2014-08-23 · 1. in the row labeled...

14
© Sam Mela. All rights reserved. Beginners Guide: Create a Magento Database in cPanel Sam Mela [email protected] 19 August 2014

Upload: others

Post on 04-Aug-2020

2 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Beginners Guide: Create a Magento Database in cPanel · 2014-08-23 · 1. In the row labeled Username, type a database user name.If you are using a shared hosting account all database

© Sam Mela. All rights reserved.

Beginners Guide: Create a Magento Database in cPanel

Sam Mela [email protected]

19 August 2014

Page 2: Beginners Guide: Create a Magento Database in cPanel · 2014-08-23 · 1. In the row labeled Username, type a database user name.If you are using a shared hosting account all database

© Sam Mela. All rights reserved.

Contents 1) Overview ......................................................................................................... 1

2) Click on the “MySQL Databases Icon” in cPanel Databases .............................. 3

3) Create the Database ........................................................................................ 4

4) Create a Database User ................................................................................... 6

5) Add the Database User to the Magento Database ........................................... 8

6) Alternative “Database Wizard” Method to Crete Database and User ............ 10

7) Hire Me .......................................................................................................... 11

Page 3: Beginners Guide: Create a Magento Database in cPanel · 2014-08-23 · 1. In the row labeled Username, type a database user name.If you are using a shared hosting account all database

© Sam Mela. All rights reserved.

Disclaimer: The use of screen shots from my Host Gator account is not intended to imply the endorsement or approval of Host Gator in the creation of this document.

Page 4: Beginners Guide: Create a Magento Database in cPanel · 2014-08-23 · 1. In the row labeled Username, type a database user name.If you are using a shared hosting account all database

[email protected] (402) 446-0211

© Sam Mela. All rights reserved. 1

1) Overview Starting in cPanel there are just 3 simple steps to constructing a database and database user suitable for the Magento install process.

Create the database Create a database user and password Add the database user to the database

the cPanel MySQL® Databases page has everything you need to set up your dataset for Magento

create the database here

create the user here

add the user to the database here

Page 5: Beginners Guide: Create a Magento Database in cPanel · 2014-08-23 · 1. In the row labeled Username, type a database user name.If you are using a shared hosting account all database

[email protected] (402) 446-0211

© Sam Mela. All rights reserved. 2

Page 6: Beginners Guide: Create a Magento Database in cPanel · 2014-08-23 · 1. In the row labeled Username, type a database user name.If you are using a shared hosting account all database

[email protected] (402) 446-0211

© Sam Mela. All rights reserved. 3

2) Click on the “MySQL Databases Icon” in cPanel Databases cPanel is broken into categorical sections. On Host Gator the first two sections are commercials for Host Gator but if you scroll down you will eventually find the Databases section.

It looks like the following, although the exact style and layout are configurable and may vary from host to host.

This will put you on a page with everything you need to create a database and a database user suitable for the Magento Install process.

click on this

Page 7: Beginners Guide: Create a Magento Database in cPanel · 2014-08-23 · 1. In the row labeled Username, type a database user name.If you are using a shared hosting account all database

[email protected] (402) 446-0211

© Sam Mela. All rights reserved. 4

3) Create the Database In the section titled Create New Database type the name of the database and click the Create Database button, as shown below.

Notice (as shown above) that the name of the database is prefixed by the cPanel account username in a shared account. So if your cPanel account username is fred the name of the database will be fred_magento_1.

After clicking the Create Database button, you should see a screen like the following, confirming the creation of your database and displaying its full name. Click the Go Back button and continue to the next section.

type the database name click notice that on a shared hosting account the name of the database will be prefixed with your cPanel account username

Page 8: Beginners Guide: Create a Magento Database in cPanel · 2014-08-23 · 1. In the row labeled Username, type a database user name.If you are using a shared hosting account all database

[email protected] (402) 446-0211

© Sam Mela. All rights reserved. 5

After clicking the Go Back button you will find yourself on the page where you created your database. The form to create a user and password is just a little further down the page.

click to return to the page where you created your database . . . the user creation form will be further down the page

full name of your new database

Page 9: Beginners Guide: Create a Magento Database in cPanel · 2014-08-23 · 1. In the row labeled Username, type a database user name.If you are using a shared hosting account all database

[email protected] (402) 446-0211

© Sam Mela. All rights reserved. 6

4) Create a Database User You should be on the page where you created the database. Scroll down further to find the Add New User form.

1. In the row labeled Username, type a database user name. If you are using a shared hosting account all database user names are prefixed by the cPanel username (as shown above). So if you select the database username mag1 and your cPanel account username is fred the complete username of the database user will be fred_mag_1.

2. Select a strong password and type it twice. 3. Click the Create User button.

After clicking the Create User button, you should see a screen like the following, confirming the creation of your user and displaying the full username. Click the Go Back button.

on a shared hosting account the name of the database user will be prefixed with your cPanel account username

type the database user name

} --type the password twice

click

Page 10: Beginners Guide: Create a Magento Database in cPanel · 2014-08-23 · 1. In the row labeled Username, type a database user name.If you are using a shared hosting account all database

[email protected] (402) 446-0211

© Sam Mela. All rights reserved. 7

After clicking the Go Back button you will find yourself on the page where you created your database and database user. The form to connect the user to the database is just a little further down the page.

full database username save the password in a password vault or some other safe place click to return to the page where

you created your database user

Page 11: Beginners Guide: Create a Magento Database in cPanel · 2014-08-23 · 1. In the row labeled Username, type a database user name.If you are using a shared hosting account all database

[email protected] (402) 446-0211

© Sam Mela. All rights reserved. 8

5) Add the Database User to the Magento Database You should be on the page where you created the database and the database user. Scroll down further to find the Add User to Database form.

After clicking the Add button, you should see a screen like the following screen allowing you to assign database privileges to your newly added user. Click the checkbox at the top that says ALL PRIVILEGES then click the Make Changes button, and you are finished.

select the user you created and the database you created

click

Page 12: Beginners Guide: Create a Magento Database in cPanel · 2014-08-23 · 1. In the row labeled Username, type a database user name.If you are using a shared hosting account all database

[email protected] (402) 446-0211

© Sam Mela. All rights reserved. 9

IMPORTANT: Save your database name, database user name, and password.

click here to select all privileges

click here and this completes your creation of a Magento database and user

Page 13: Beginners Guide: Create a Magento Database in cPanel · 2014-08-23 · 1. In the row labeled Username, type a database user name.If you are using a shared hosting account all database

[email protected] (402) 446-0211

© Sam Mela. All rights reserved. 10

6) Alternative “Database Wizard” Method to Crete Database and User Starting from the Databases section of the main cPanel page, just click on MySQL Database Wizard, as shown below.

The wizard will present you with substantially the same screens described in the previous sections of this document. Just fill them in.

click on this

Page 14: Beginners Guide: Create a Magento Database in cPanel · 2014-08-23 · 1. In the row labeled Username, type a database user name.If you are using a shared hosting account all database

[email protected] (402) 446-0211

© Sam Mela. All rights reserved. 11

7) Hire Me I am available to work on your Magento store at reasonable rates.