国产+高潮+在线,国产 av 仑乱内谢,www国产亚洲精品久久,51国产偷自视频区视频,成人午夜精品网站在线观看

webman-admin數(shù)據(jù)庫配置報錯

xcq

問題描述

根據(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)及workerman/webman等框架組件具體版本

操作系統(tǒng):ubuntu LTS 20.04
框架:webman
插件:webman-admin

1286 1 0
1個回答

walkor 打賞

plugin/admin/app/controller/InstallController.phpgetPdo() 方法$params里加 \PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true, 試下

  • xcq 2023-04-02

    首先非常感謝!
    沒有InstallController.php這個文件,需要自建嗎?

  • xcq 2023-04-02

    找到了,plugin/admin/app/controller/common/InstallController.php

年代過于久遠(yuǎn),無法發(fā)表回答
??