1
Error Number: 1064
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE `id` = '0bc6ecedf769fe4ccd8199bd7bc76c15369c7419'' at line 2
SELECT `data` WHERE `id` = '0bc6ecedf769fe4ccd8199bd7bc76c15369c7419'
Filename: libraries/Session/drivers/Session_database_driver.php
Line Number: 160
我不知道這個錯誤是怎麼來了,我所做的就是複製我的模型,控制器,助手和CI 2.2意見CI 3.0.1數據庫錯誤3.0.1
我會話配置看起來像這樣
$config['sess_driver'] = 'database';
$config['sess_cookie_name'] = 'ci_sessions';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = NULL;
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;
,這些都是我的數據庫設置
$db['default'] = array(
'dsn' => '',
'hostname' => 'host',
'username' => 'admin',
'password' => 'password',
'database' => 'db_name',
'dbdriver' => 'mysqli',
'dbprefix' => '',
'pconnect' => FALSE,
'db_debug' => (ENVIRONMENT !== 'production'),
'cache_on' => FALSE,
'cachedir' => '',
'char_set' => 'utf8',
'dbcollat' => 'utf8_general_ci',
'swap_pre' => '',
'encrypt' => FALSE,
'compress' => FALSE,
'stricton' => FALSE,
'failover' => array(),
'save_queries' => TRUE
);
你應該嘗試升級2.2至3,而不是應對文件.. – AnkiiG
SELECT數據'FROM table_name' WHERE ID =「0bc6ecedf769fe4ccd8199bd7bc76c15369c7419」這是不是笨故障。 – RubahMalam
@RubahMalam這是會議桌,所以我如何控制它? – runningmark