There are a number of ways to upload your MySQL database to your account.
You can use phpMyAdmin to upload your database by using ‘Import’ to upload a .sql file, or by pasting the SQL script into a query window and executing it.
To get into phpMyAdmin:
To use ‘Import’:
Please note: ‘Import’ can only be used on databases that are smaller than 16MB.
To paste your SQL script in:
If your SQL script contains a large amount of data, you may be able to paste it in sections to get all the content in.
You can restore existing backups through the eXtend Control Panel MySQL Database page.
To restore a backup:
MySQL offers the MySQL Workbench, a piece of free software that allows you to manage, backup, and restore MySQL databases. The software can restore large databases, and also comes packaged with the MySQL Query Browser.
To download and find out more about MySQL Workbench, please visit the MySQL site: http://dev.mysql.com/downloads/workbench/
If you have SSH access to your account, you can upload your MySQL backup to your home directory, and then execute the MySQL client to load a MySQL dump file.
To get the MySQL dump file:
Mysqldump --opt -Q dbname
Where the dbname is your database’s name
To load your MySQL dump using MySQL:
mysql -h mysqlhost -u mysqlusername -p databasename < dumpfile.sql
or
cat dumpfile | mysql -h mysqlhost -u mysqlusername -p databasename
Where mysqlhost is the name of the server, mysqlusername is your MySQL user name, datbasename is your database’s name, and dumpfile.sql is the file created by mysqldump.
Article ID: 7
Created On: Thu, Feb 26, 2015 at 4:47 PM
Last Updated On: Wed, Aug 18, 2021 at 11:08 AM
Online URL: https://www.heartinternet.uk/support/article/how-can-i-upload-my-mysql-database.html