RE: Newbie seeks help with PHP database connection problems

From: Date: Wed, 18 Apr 2001 23:30:37 +0000
Subject: RE: Newbie seeks help with PHP database connection problems
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-6847@lists.php.net to get a copy of this message
>How do you create user access priviliges in MySQL and where would you put a >username and password in the mysql_select_db() statement? I suggest you try the fail-safe method of getting mySQL and PHP working together: Before applying any difficult stuff from your books: install phpMyAdmin from www.phpWizard.net. This PHP-application is easy to setup (just edit the config*.php) on your server and shows you which tables do exist. BTW, a default mySQL-installation has a root-user with an empty password. I believe it runs on port 3306, but you hardly need to provide those kind of parameters. Of course, you should be sure that mySQL is running on your server. Go into your mySQL-directory, type mysql <ENTER> and see whether you get a prompt or an error-message. After all that works you can try creating your own scripts and wonder why they are (not) working... Good luck... Greetings, Martijn

« previous php.windows (#6847) next »