|
Posted by J.O. Aho on 02/25/06 01:51
napoleon wrote:
> I've got PHP running on IIS in XP Pro on a local machine at Port 8080
> and the MySQL server on the same machine at Port 3306. My SQL server
> has a Server host name of localhost and a user name of root. I don't
> use a password. Does anyone know whether it will, or should, be
> possible for me to make a call from PHP to my MySQL Server to access
> tables, make querys etc. Any hints on where to find good code for these
> sorts of operations would be welcome. For example, $ dbhost = local
> host (presumeably), and $ dbuser = root. Presumeably I don't use $
> dbpassword. Then I use the mysql connect command to call up a $ dbname
> (an existing, named MySQL db) etc. I just wondered if I could get any
> guidance with this in case I am missing something. Thanks.
>
http://www.php.net/manual/en/function.mysql-connect.php
Just set the password to '' (empty string), but I would really set a password
for the root user and then use it.
//Aho
Navigation:
[Reply to this message]
|