Web Hosting Talk







View Full Version : Technical question...


Jack Horror
07-08-2002, 08:57 PM
Does anybody have any idea on restoring a cPanel database backup into a MySql database?

My previous host cancelled my account without warning me, and now I have only that backup of my database, but it seems that I won't have cPanel in the future.

The Prohacker
07-08-2002, 09:07 PM
It should be in this form:

username_dbname.tar.gz right??

Just untar it and inside should be a stock .sql file...

On the new host, make the new db and set the permissionsand upload and from shell:

mysql -uUsername -pPassword NewDBname < /path/to/db/backup.sql

Jack Horror
07-08-2002, 09:09 PM
Thanks a lot, I'll try it!