Creating DB through scripts?

software development


Does anyone know of any scripts I can use to create a db on dreamhost servers, without the control panel?

For example using php I could do:
$query = “CREATE DATABASE mydb”;
$result = mysql_query($query);

however that doesn’t work!

Use “DCOUNTME” promo code when registering and recieve up to $85 off! (referer: saygoodbye)


All such things must go through the control panel. The only way to have a script create a database is to authentiace it self to the panel and submit the appropiate info there. There have been a few other people doing something similair, if you search the forums - I think one discussion was about adding E-mail addresses.

–Matttail - personal website


yeah, definitly didn’t have that. there is more code just didn’t have a connection. I’m not a programmer, someone else wrote the script for me and is not available to troubleshoot this. he set the whole thing up on his local machine, and now I have to get it running on dreamhost. any help with doing this would be greatly appreciated.