I have this handy script which exports a database into a tar.gz-file or a .sql-file. This is done without using phpMyAdmin, since the user it’s intended for, has to have it as easy as possible.
It uses:
passthru(“mysqldump --opt -h$dbhost -u$dbuser -p$dbpass $dbname >$filename”);
Now, is there a way to easily import the .sql or .tar.gz-file?
So, in other words: reinstall the backup of the database that has been made with the mysqldump-script - without using phpMyAdmin?
Any help is appreciated!
Jazz