PDA

View Full Version : Creating a DB


Sebastian
12-01-2002, 07:28 PM
How do I make a php script to automatically make a database when ran? Say I want to create a database called "database."

Would I have to include the db username and password to grant the script permission to create the database?

thanks.

Sebastian
12-01-2002, 09:06 PM
anyone?! :)

filburt1
12-01-2002, 09:58 PM
<a href="http://www.php.net/manual/en/function.mysql-create-db.php" target="_blank">http://www.php.net/manual/en/functio...-create-db.php</a> , then, since I don't see anything like mysql_grant try exec'ing the actual command to GRANT a user access.