Posted by Steve on 10/26/05 14:12
> $user="username";
> $password="password";
> $database="database";
> mysql_connect(localhost,$user,$password);
I expect you meant to type "localhost" in quotes (but the error
messages imply that there's some other problem.)
What version of MySQL are you using, and on what operating system? Did
you install it, and did you follow the installation instructions on
setting up an initial account name and password?
See here for instance:
<http://dev.mysql.com/doc/refman/4.1/en/default-privileges.html>
---
Steve
[Back to original message]
|