无法使用提供的设置连接到数据库服务器。
文件名: C:\瓦帕\ WWW \ bdwey-flowrank-f557ab5e422d \ SYSTEM \数据库\ DB_driver.php
行号:124
哪里有问题,请帮忙?
数据库设置正确
$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:\瓦帕\ WWW \ bdwey-flowrank-f557ab5e422d \ SYSTEM \数据库\ DB_driver.php
行号:330
哪里有问题?
答案 0 :(得分:0)
看起来问题不是代码问题,而是你的MySQL服务器。
尝试修复mysql表。请在此处阅读:http://dev.mysql.com/doc/refman/5.0/en/rebuilding-tables.html