1.软件包安装 yum install php-mysql 安装的是mariadb的扩展 yum install php-mysqlnd 安装的是mysql的扩展 转载于:https://www.cnblogs.com/wangshuyi/p/6430373.html