php - mysql connection -
platform: windows server 2008 r1
i'm trying configure ikbin usenet indexer on local server.
i installed mysql, php interpreter, , until try open admin.php page. page loads fine, see mysql error @ top.
when trying connect mysql allow me add newsgroups index, or going default php page, receive error connecting mysql database:
database error: pconnect(localhost, mysqluser, $password) failed. mysql error: ()
the ikbin package comes admin pages set passwords db access, keeps failing, , i'm entering correct passwords...
i don't know either php or mysql. there fundamental newbie thing might doing wrong? thanks
just use following code.,it may helps problem... $dbconnection = mysql_pconnect( $myhostname, $myusername, $mypassword );
if ( !mysql_ping( $dbconnection ) ) { $dbconnection = mysql_pconnect( $myhostname, $myusername, $mypassword ); }
Comments
Post a Comment