0

无法使用提供的设置连接到您的数据库服务器。

文件名:C:\wamp\www\bdwey-flowrank-f557ab5e422d\system\database\DB_driver.php

行号:124

哪里的问题,请帮忙?

DB设置正确

$active_group = 'default';
$active_record = TRUE;
$db['default']['hostname'] = 'localhost';
$db['default']['username'] = 'root';
$db['default']['password'] = 'sqlpass';
$db['default']['database'] = 'myDBName';
$db['default']['dbdriver'] = 'mysql';
$db['default']['dbprefix'] = '';
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = '';
$db['default']['char_set'] = 'utf8';
$db['default']['dbcollat'] = 'utf8_general_ci';
$db['default']['swap_pre'] = '';
$db['default']['autoinit'] = TRUE;
$db['default']['stricton'] = FALSE;`

$db['default']['password'] = ''; 并且当从生成此错误中删除密码时

发生数据库错误

错误号:1017

找不到文件:'.\flowrank\use@0009rs.frm'(错误号:22)

SELECT items.image, CONCAT(users.fname,' ',users.lname) AS full_user_name, competition.competition_id,competition.title,competition.votes FROM items AS items LEFT JOIN competitions AS competition ON competition.competition_id = items.competition_id LEFT JOIN users AS users ON competition.user_id = users.user_id GROUP BY items.competition_id ORDER BY items.votes ASC LIMIT 5

文件名:C:\wamp\www\bdwey-flowrank-f557ab5e422d\system\database\DB_driver.php

行号:330

哪里出了问题?

4

1 回答 1

0

看起来问题不是代码问题,而是您的 MySQL 服务器。

尝试修复您的 mysql 表。在这里阅读:http: //dev.mysql.com/doc/refman/5.0/en/rebuilding-tables.html

于 2013-07-29T04:55:30.977 回答