當(dāng)數(shù)據(jù)表的表名有一個(gè)以上的"_"就會(huì)報(bào)錯(cuò),無(wú)法獲取數(shù)據(jù)
比如:表名im_chat_log,而im_chat卻可以獲取數(shù)據(jù),等待修復(fù)
獲取多數(shù)據(jù)庫(kù)數(shù)據(jù)時(shí)報(bào)錯(cuò):
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ù)庫(kù)獲取數(shù)據(jù)就正常,有的數(shù)據(jù)庫(kù)就報(bào)錯(cuò)
運(yùn)行 composer update workerman/webman-framework
更新下
報(bào)錯(cuò):
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ù)庫(kù)應(yīng)該是:webman_666_cn,而報(bào)錯(cuò)中提示卻是webman_666_c,數(shù)據(jù)庫(kù)名稱讀取長(zhǎng)度就不對(duì),需要哪里改動(dòng)
@1:正確的了啊,數(shù)據(jù)表少的數(shù)據(jù)庫(kù)沒(méi)問(wèn)題,數(shù)據(jù)表多的數(shù)據(jù)庫(kù)就出問(wèn)題,將數(shù)據(jù)表多的數(shù)據(jù)庫(kù)清空加入少量數(shù)據(jù)表訪問(wèn)正常,然后增加數(shù)據(jù)表后就報(bào)錯(cuò)了