在navicat客户端中登录mysql-proxy进行任何操作正常

在laravel中执行任何sql语句都会报错

SQLSTATE[HY000]: General error: 1243 Unknown prepared statement handler (X) given to 
mysqld_stmt_execute

-------------------------------------------------------------------------------------------

最近在做毕业设计项目。
Mysql读写分离,主从复制。
Mysql-proxy在A服务器,B服务器 Master负责写,C服务器 Slave负责读。
在navicat客户端中登录mysql-proxy进行操作正常

php artisan migrate

抛出如下错误

PS C:\phpStudy\WWW\XXX\test> php artisan migrate
In Connection.php line 647:
  SQLSTATE[HY000]: General error: 1243 Unknown prepared statement handler (2) given to 
mysqld_stmt_execute (SQL: select * from information_schema.tables where table_schema = 
shop and table_name = migrations)
In MySqlConnector.php line 57:
  SQLSTATE[HY000]: General error: 1243 Unknown prepared statement handler (2) given to 
mysqld_stmt_execute

百度了一下说是权限问题?我看了数据库 information_schema 中的表 tables ,确实没有 table_schema = shop and table_name = migrations
这种怎么解决?Google没搜出来。

是不是安装环节的问题?安装完第一次执行的时候会添加migration这张表到数据库中.

另外migration也不是必须要用的.现实是大部分公司都没有使用这个.很多轻量级框架都是只有mvc的功能,比如yaf.

现在这个表确实不见了,可能昨天主从复制出问题我把数据库清空了,怎么找回来呢?
2020-06-07 22:22:39 企业邮箱发送邮件时,若出现投递失败产生退信,内容提示包含如下: the mta server of * reply:550 failed to meet SPF requirements 或者 the mta server of 163.com — 163mx01.mxmail.netease.com(220.181.14.141) reply:550 MI:SPF mx14,QMCowECpA0qTiftVaeB3Cg—.872S2 1442548128 http://mail.163.com/help 299800