开发者

php - mysql connection

开发者 https://www.devze.com 2023-02-11 04:53 出处:网络
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 p

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 ); }

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号