cancel
Showing results for 
Search instead for 
Did you mean: 

Database not created

N/A

Database not created

Having activated MySQL I havnt received email notification of database (name&password).

How & when is the database created?

Can a database be created via PHP scripting & MySQL?

Thanks

Paul
--
1 REPLY
N/A

RE: Database not created

> Having activated MySQL I havnt received email notification of database (name&password).
>
> How & when is the database created?
>
> Can a database be created via PHP scripting & MySQL?
>
> Thanks
>
> Paul
>
> --

Contact Support, they will re-issue you the details, then goto the MySQL Admin area and login with those details and you can use the database. Because f9 don't support php on the homepages server Sad you will have to upload to your cgi space to run your PHP.

You can make a database using PHP but if you don't have a username and password you can't connect to it to make that database, here how though if you want to know: (Copied from the PHP Manual)

bool mysql_create_db ( string database name [, resource link_identifier])


<?php
$link = mysql_pconnect("localhost", "mysql_user", "mysql_password")
or exit("Could not connect");

if (mysql_create_db("my_db")) {
print ("Database created successfully\n");
} else {
printf ("Error creating database: %s\n", mysql_error ());
}
?>
I hope this helps,

Cheers
Chris.