Why I cannot create DB in MySQL throw PHP?
- by Roman
I have this code:
$link = mysql_connect("localhost", "ctman", "blablabla");
if ( ! $link )
die ("I cannot connect to MySQL.<br>\n");
else
print "Connection is established.<br>\n";
// Create the "ct" database.
mysql_query("create database ct", $link) or die("I cannot create the DB: ".mysql_error()."<br>\n");
And I get…