ThinkPHP 错误: Undefined class constant 'MYSQL_ATTR_INIT_COMMAND'

  在配置了ThinkPHP 的数据库配置信息后,在实例化Model(),调用相关方法时候 出现错误,改进如下方式后解决:

  找到php.ini 的文件,打开扩展  php_pdo_mysql.dll ,然后记得重启 apache

原文地址:https://www.cnblogs.com/yougmi/p/5687638.html