mysql - php could not find driver

WBOY
Release: 2016-06-06 20:14:23
Original
1041 people have browsed it

在阿里云上配置网站的时候打开index.php显示could not find driver。google、百度之后都说是pdo没打开。在php.ini加上extension=pdo_mysql.so之后还是没用。但是能够成功打开文件并显示php信息。感觉还是php配置出问题了。求指点

回复内容:

在阿里云上配置网站的时候打开index.php显示could not find driver。google、百度之后都说是pdo没打开。在php.ini加上extension=pdo_mysql.so之后还是没用。但是能够成功打开文件并显示php信息。感觉还是php配置出问题了。求指点

阿里云的php环境没有编译pdo吧

在phpinfo里面看下有没有pdo

或者 在命令行输入:
php -m | grep pdo

看看有没有输出。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!