當數(shù)據(jù)表的表名有一個以上的"_"就會報錯,無法獲取數(shù)據(jù)
比如:表名im_chat_log,而im_chat卻可以獲取數(shù)據(jù),等待修復
獲取多數(shù)據(jù)庫數(shù)據(jù)時報錯:
Fatal error: Declaration of support\exception\Handler::render(Webman\Http\Request $request, Throwable $exception): Webman\Http\Response must be compatible with Webman\Exception\ExceptionHandler::render(support\Request $request, Throwable $exception): support\Response in /www/wwwroot/webman.666.cn/support/exception/Handler.php on line 25
Worker[52497] process terminated with ERROR: E_COMPILE_ERROR "Declaration of support\exception\Handler::render(Webman\Http\Request $request, Throwable $exception): Webman\Http\Response must be compatible with Webman\Exception\ExceptionHandler::render(support\Request $request, Throwable $exception): support\Response in /www/wwwroot/webman.666.cn/support/exception/Handler.php on line 25"
有的數(shù)據(jù)庫獲取數(shù)據(jù)就正常,有的數(shù)據(jù)庫就報錯
運行 composer update workerman/webman-framework
更新下
報錯:
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'webman_666_c.ims_beta_car_car' doesn't exist in /www/wwwroot/webman.666.cn/vendor/illuminate/database/Connection.php:331
Stack trace:
數(shù)據(jù)庫應該是:webman_666_cn,而報錯中提示卻是webman_666_c,數(shù)據(jù)庫名稱讀取長度就不對,需要哪里改動
@1:正確的了啊,數(shù)據(jù)表少的數(shù)據(jù)庫沒問題,數(shù)據(jù)表多的數(shù)據(jù)庫就出問題,將數(shù)據(jù)表多的數(shù)據(jù)庫清空加入少量數(shù)據(jù)表訪問正常,然后增加數(shù)據(jù)表后就報錯了