php mysql extension installation

Posted jdcai

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了php mysql extension installation相关的知识,希望对你有一定的参考价值。

after installed php by $ sudo apt install php, we can check the php version by $php -v,  to me ,it is 7.0.

 

so in order to connect to mysql in $php -S localhost:80000, we need to install mysql extension or the program can`t connect to mysql.

 

$sudo apt install php7.0-mysql

 

so ,that`s ok, now we can run wordpress through $php -S localhost:8000

以上是关于php mysql extension installation的主要内容,如果未能解决你的问题,请参考以下文章

mysql配置

php5 php.ini 设置

apache-php安装mysql简单方法

PHP16 PHP访问MySQL

如何在PHP下开启PDO MySQL的扩展

如何在PHP下开启PDO MySQL的扩展