mysql error

一、could not find driver 

我们这里以 PDO 为例,

问题: PDO 连接数据库找不到驱动程序。

解决方法:在 php.ini 里面讲 php_pdo_mysql php_pdo_sqlite 两个拓展打开,然后重起 apache

二、unable to open underlying table which is differently defined or of non-MyISAM type of doesn't exist

这个错误的意思是:因为表的定义不同或者是因是非MyISAM类型 或者是表不存在而打不开。

这种错误时当我们需要用到 merge 表的时候可能会出现。
Merge 引擎也只能适合 MyIsam存储引擎的表。可以按照这个顺序检查一下:
1、检查一下你的表是否都存在
2、检查所有的表的存储引擎是否一致,并且必须为 MyIsam 存储引擎;
3、在看看每个表的结构(索引、列、字符集)这些是否一样

 

猜你喜欢

转载自www.cnblogs.com/chrdai/p/9117002.html