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

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -