Yes, you can install it yourself.
But, I do recommend that Mascon over it any day of the week. For 100 reasons... apart from it not being Freeware. But $49 for somthing you'll be well glad you had in your tool box (for a long long time), is a pretty nice investment.
You will need to be taking backups of your database regular anyway. You may aswell have a smooth procedure for doing it.
Anyway, your original problem was that you didn't seem to be stating any connections to a database server, and not selecting a database.
Try somthing like this :
[sql]
$destinationLink = mysql_connect("destinationServerName", "username", "password") or die("Could Not Connect To DESTINATION database");
$connectDestination = mysql_select_db("destinationDatabaseName", $destinationLink) or die ("Could Not Select DESTINATION database");
$sqlEx = "sql"; //
$schema = "vbulletin"; //
$sql = explode(";", implode("", file("./".$schema.".".$sqlEx)));
for ($i = 0; $i < count($sql); $i++) mysql_query($sql[$i], $destinationLink) or die(mysql_error());
[/sql]
... Good luck. :bunny:
|