[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-developers] Creating MySQL Database from PHP
- Subject: [cobalt-developers] Creating MySQL Database from PHP
- From: "Distortal" <info@xxxxxxxxxxxxx>
- Date: Tue Jul 15 10:21:04 2003
- List-id: Discussion Forum for developers on Sun Cobalt Networks products <cobalt-developers.list.cobalt.com>
Hi All,
After much probing about I've finally got MySQL working and started, but I
can't create a database. I am using:
<?
$conn=mysql_connect("$hostname","$username","$password")
or die("Unable to connect to MySQL"); if($conn){print "Connected
OK<BR>";}
mysql_create_db("counterdb",$conn)
or die("Unable to create database!");
?>
The script connects OK but I am unable to create a database. Is there a
setting that needs to be enabled anywhere to allow a user to do this? I've
tried connecting using both the admin login and the account login, but both
produce an error despite being valid.
Regards,
Rick