[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-developers] Creating MySQL Database from PHP



> #2 - What is the $username & $password?  Do they have rights to
> create a database?

I think this is the crux of the matter, as I've now created the database via
Telnet, created a table and inserted a row.  If I specify any username or
password at all I get the error "Access denied for user...".  This occurs if
I use the site username/password or root.

If I connect without specifying a host, user and pass then I can't select a
database to use.

	mysql_select_db($database,$conn)
	or die("Unable to select DB $database");

gives the die message.

How do I set permissions to access a database?

D