6
Another one:
- Copy your dump to your server (best to put it in a password protected folder)
- Paste the following content in a file, change tha variables (host, user, pwd....) and save it as 'import.php', in the same folder
- Access import.php with your browser
-
Delete both files<?php $host = 'localhost'; $user = 'user_name'; $pwd = 'pwd'; $db = 'db_name'; $dump = 'my_dumpfile.sql'; system( "cat $dump | MySQL --host=$host --user=$user --password=$pwd $db"); echo "SQL file imported."; ?>
Might not always work, but the fastest way if your hosting company allows the 'system' command.
skalpa.>