No, what I want to do is:
$link = mysql_connect("$db_hostname");
if (! $link)
die("Couldn't connect to MySQL");
mysql_create_db("$db_default");
mysql_close($link);
mysql_query("mysql -u $db_username -p $db_password $db_default < install.sql");
but it doesn't work! 😕