Re: Newbie seeks help with PHP and MySQL

From: Date: Wed, 18 Apr 2001 22:02:20 +0000
Subject: Re: Newbie seeks help with PHP and MySQL
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-6844@lists.php.net to get a copy of this message
Read the MySQL manual, chapter 6.12 entitled "Setting up the intitial MySQL privileges". You'll want to create a username and password, and then GRANT it the proper privileges. Then just alter your mysql_connect to reflect your username and password, and it should all work fine again. -- Plutarck Should be working on something... ...but forgot what it was. ""r.gelstharp"" <r.gelstharp@ntlworld.com> wrote in message news:9bkmub$9bn$2@toye.p.sourceforge.net... > I'm new to the game of PHP and MySQL but have the latest versions of both > installed along with Apache on my Win 98 machine. > > I'm having problems connecting to a database I know is there, an empty one > that I'm trying to use PHP to add tables to. > In the "die()" statement to the "mysql_select_db()" function I put > mysql_error and it came out with the message that I had no priviliges to the > database. > > How in MySQL do I get user access priviliges and how/where in the > mysql_select_db() statement would you put a username and password? > > Thanks. > > > > -- > PHP Windows Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net > For additional commands, e-mail: php-windows-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.windows (#6844) next »