根據(jù)webman-admin手冊 ,在【入門指引】/【安裝】/第3步
訪問 http://127.0.0.1:8787/app/admin/ 完成數(shù)據(jù)庫相關(guān)配置
填好數(shù)據(jù)庫信息后,報錯:
SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute. (SQL: -- -- Dumping data for table `wa_admin_roles` -- LOCK TABLES `wa_admin_roles` WRITE)
自行網(wǎng)上搜索相關(guān)信息,在webman/config/database.php中添加:
'params'=>[
PDO::ATTR_CASE => PDO::CASE_LOWER,
PDO::ATTR_EMULATE_PREPARES => true,
],
問題依然存在。
去數(shù)據(jù)庫里查看表信息,發(fā)現(xiàn)有一張表:wa_admin_roles
SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute. (SQL: -- -- Dumping data for table `wa_admin_roles` -- LOCK TABLES `wa_admin_roles` WRITE)
操作系統(tǒng):ubuntu LTS 20.04
框架:webman
插件:webman-admin