PHPMyadmin restore limit is 200mb Max ,
My database size me 2.5GB.
To restore I used this command in SSH:
mysql -u megawrzc_forum -p XXXXXXXXXX < XXXXXXXXXX.sql
And i entered my Pass
Then i got this error
ERROR 1045 (28000): Access denied for user 'xxxxxxx'@'localhost' (using password: YES)
Help me guys , thank you
Note:
If your database backup resides on your home computer, you will first have to upload it via FTP to your website
Open your SSH/Telnet client and log into your website. The command line prompt you will see will vary by OS. For most hosting companies, this will bring you into the FTP root folder.
You can either change directoties to wherever the backup is located and type in the following:
mysql -u
dbusername -p
databasename < backupname.sql
Or if you do not want to change directories and you know the path to where the backup is located, type in the following:
mysql -u
dbusername -p
databasename < /path/to/backupname.sql
You will be prompted for the database password. Enter it and the database will backup.
If your hosting company has you on a remote MySQL server, such as mysql.yourhost.com, you will need to add the servername to the command line. The servername will be the same as in your config.php. The command line will be:
mysql -h
servername -u
dbusername -p
databasename < backupname.sql
Or:
mysql -h
servername -u
dbusername -p
databasename < /path/to/backupname.sql
So yea just use this:
mysql -u
dbusername -p
databasename < /path/to/backupname.sql
Make sure you have created a DB with a user and privileges in phpmyadmin then change the command to fit your db.
EX:
mysql -u
yourPHPMYADMINDBusername -p
YOUYRPHPMYADMINdatabasename < /path/to/THE_NAME_OF_YOUR_SQL.sql