Re: Database connection problem
| From: | Cameron Just | Date: | Tue, 26 Mar 2002 02:03:30 +0000 |
| Subject: | Re: Database connection problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-90134@lists.php.net to get a copy of this message | ||
Hi,
Genenally you can use 'localhost' as the hostname username 'root' and the
password is blank.
I beleive this is a default user when mysql is installed.
The details about how to connect are in the database 'mysql' and the
table 'user'. You should probably add a new user specifically for your php
scripts to this table.
NOTE: If you do add a new user you will need to restart mysql before it can
be accessed via the new user.
Hope that helps.
> Hi, can anyone help me with this problem.
> I'm trying to connect to a MySQL database on my computer, I don't have
> a hostname for it, so I just insert the IP, something like this.
>
> ...
> mysql_cos?
> Thanks.
> -Chris