Reply to Re: Are there any preliminaries before accessing My SQL from PHP?

Your name:

Reply:


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

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация