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

Re: [cobalt-users] OT: MySQL



"Andy Jacobs" <andy@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
> $hostname = "http://www.mydomain.net;

Do not include the protocol "http://"; in the hostname.

> MYSQL_CONNECT($hostname,$username,$password) OR DIE("Unable to connect to
> database");

Also check that in the db "mysql" the proper privileges are setup in the
tables "user" and "db" to allow access from that site. Use GRANT syntax or
INSERT/UPDATE followed by "FLUSH PRIVILEGES";

--
Steve Werby
President, Befriend Internet Services LLC
http://www.befriend.com/