MySQL Forums
Forum List  »  PHP

Re: MySQL connection error
Posted by: Collins Abah
Date: June 21, 2005 05:51AM

Your have to use ur root user account to log in; not ur database name or the user you created the 'admin' password for.

for example:

$connection = mysql_pconnect("localhost","root","password");

//then select the database

mysql_select_db("polls",$connection );

Options: ReplyQuote


Subject
Written By
Posted
June 16, 2005 03:05PM
Re: MySQL connection error
June 21, 2005 05:51AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.