Portal Home > Knowledgebase > Databases > Importing your MySql database


Importing your MySql database




Below you will find a step by step instruction to import MySql databases as well how to create and associate databases and database usernames.


  1. Login to your cPanel and under Databases, click on MySql Databases.
  2. On that page, create a new database. For example, if you enter dbname, the database name will be yourusername_dbname
  3. Now that you have a database, you MUST associate that database to a username, create a username on that same page. Add new user.
  4. Then go to the bottom of this page, add username to database and assign all privileges for this user to the database
  5. You're done on creating the db, and the username which can access that db.
  6. Now go back to your cPanel main page, under Databases click on phpMyAdmin.
  7. On the phpMyAdmin page, on the left database list, click on the database which you just created from the above steps
  8. Then, on the top menu, click Import. Select your sql file to load, and click the Go button
  9. Voila! You just successfully imported your database
  10. You can now access that database from your application or scripts, using the database host localhost, and the database name and username which you created on the above steps.

 

Keywords: mysql, creating mysql database, creating mysql user, mysql username, mysql access



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read

Powered by WHMCompleteSolution