I really need this script but the import portion of the script is not importing the sql dump file. Here's what I used:
PHP Code:
<?
mysql_connect("localhost","dbusername","dbpassword");
mysql_query("CREATE DATABASE dbname");
system ("mysql -h localhost -u dbusername --password=dbpassword dbname < webdjnet.sql");
?>
I ran the drop script first, then this one. The database is created but nothing imports. I would really appreciate any help. Thanks!