platform: windows server 2008 R1
I'm trying to configure ikbin usenet indexer on my local server.
I installed mysql, a php interpreter, and all is well until I try to open the admin.php page. The page itself loads fine, but I see 开发者_JAVA技巧a mysql error at the top.
When trying to connect to mysql to allow me to add newsgroups to index, or just going to the default php page, I receive an error connecting to the mysql database:
Database error: pconnect(localhost, MySQLuser, $Password) failed. MySQL Error: ()
The ikbin package comes with some admin pages where you set passwords for db access, but it keeps failing, and I am certain i'm entering the correct passwords...
I don't know much about either php or mysql. Is there any fundamental newbie thing I might be doing wrong? THANKS
Just Use the following code.,it may helps for your problem... $dbConnection = mysql_pconnect( $myHostname, $myUsername, $myPassword );
if ( !mysql_ping( $dbConnection ) ) { $dbConnection = mysql_pconnect( $myHostname, $myUsername, $myPassword ); }
精彩评论