代码如下 <?php///////////////////////////////////////////////////////////// // Please note that if you get any errors when connecting, // // that you will need to email your host as we cannot tell // // you what your specific values are supposed to be // /////////////////////////////////////////////////////////////// type of database running // (only mysql is supported at the moment) $dbservertype='mysql';// hostname or ip of server $servername='localhost';// username and password to log onto db server $dbusername='feeling8'; $dbpassword='gu1982328';// name of database $dbname='YES';// technical email address - any error messages will be emailed here $technicalemail='[email protected]';// use persistant connections to the database // 0 = don't use // 1 = use $usepconnect=1;?>
// Please note that if you get any errors when connecting, //
// that you will need to email your host as we cannot tell //
// you what your specific values are supposed to be //
/////////////////////////////////////////////////////////////// type of database running
// (only mysql is supported at the moment)
$dbservertype='mysql';// hostname or ip of server
$servername='localhost';// username and password to log onto db server
$dbusername='feeling8';
$dbpassword='gu1982328';// name of database
$dbname='YES';// technical email address - any error messages will be emailed here
$technicalemail='[email protected]';// use persistant connections to the database
// 0 = don't use
// 1 = use
$usepconnect=1;?>
安置程序应该是自己建一个MYSQL数据库的吧
拥护名和密码都是在第一步更新CONFIG。PHP的
你試試在mysql> 內行以下command!GRANT ALL PRIVILEGES ON YES.* TO feeling8@localhost IDENTIFIED BY 'gu1982328';
我怀疑你是不是库名写错了呀,库叫 YES 呀grant 后 可以加句 flush privileges;
这样不用重启mysql就可以生效了