首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >照明\数据库\QueryException请帮助我

问照明\数据库\QueryException请帮助我
EN

Stack Overflow用户
提问于 2020-03-21 16:26:45
回答 1查看 202关注 0票数 1

数据库\QueryException找不到驱动程序(SQL:插入注册(fname、lname、email、密码、_token)值(rakesh、kumar、rakeshkumarsingh25may@gmail.com、_token)

http://127.0.0.1:8000/store

代码语言:javascript
复制
 * @throws \Illuminate\Database\QueryException

 */

protected function runQueryCallback($query, $bindings, Closure $callback)

{

    // To execute the statement, we'll simply call the callback, which will actually

    // run the SQL against the PDO connection. Then we can calculate the time it

    // took to execute and log the query SQL, bindings and time in our memory.

    try {

        $result = $callback($query, $bindings);

    }



    // If an exception occurs when attempting to run a query, we'll format the error

    // message to include the bindings with SQL, which will make this exception a

    // lot more helpful to the developer instead of just the database's errors.

    catch (Exception $e) {

        throw new QueryException(

            $query, $this->prepareBindings($bindings), $e

        );

    }



    return $result;

}
EN

回答 1

Stack Overflow用户

发布于 2020-03-23 11:34:44

PHP版本:PHP7.3.12-1 (cli) (构建: 2019 07:34:08) ( NTS )版权(c) 1997-2018年PHP v3.3.12,版权(c) 1998-2018 Zend OPcache v7.3.12-1,版权(c) 1999-2018年

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60790306

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档