首页 > 后端开发 > php教程 > centos下使得php支持mysql

centos下使得php支持mysql

WBOY
发布: 2016-08-08 09:28:27
原创
1163 人浏览过

我这里只安装了一个php-mysql就可以了~~

<code>[root@LAMP1 controllers]# yum install php-mysql
Loaded plugins: fastestmirror, presto
Loading mirror speeds from cached hostfile
<span> * base: mirrors.pubyun.com</span><span> * extras: mirrors.163.com</span><span> * updates: mirrors.skyshe.cn</span>
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-mysql.x86<span>_64 0:5.3.3-40.el6_</span>6 will be installed
--> Processing Dependency: php-pdo(x86-64) for package: php-mysql-5.3.3-40.el6<span>_6.x86_</span>64
--> Running transaction check
---> Package php-pdo.x86<span>_64 0:5.3.3-40.el6_</span>6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================================================
 Package                                      Arch                                      Version                                              Repository                                  Size
==============================================================================================================================================================================================
Installing:
<span> php-mysql                                    x86_64                                    5.3.3-40.el6_6                                       updates                                     84 k</span>
Installing for dependencies:
<span> php-pdo                                      x86_64                                    5.3.3-40.el6_6                                       updates                                     78 k</span><span>Transaction Summary
==============================================================================================================================================================================================</span>
Install       2 Package(s)

Total download size: 162 k
Installed size: 384 k
Is this ok [y/N]: y
Downloading Packages:
Setting up and reading Presto delta metadata
Processing delta metadata
Package(s) data still to download: 162 k
(1/2): php-mysql-5.3.3-40.el6<span>_6.x86_</span>64.rpm                                                                                                                             |  84 kB     00:00     
<span>(2/2): php-pdo-5.3.3-40.el6_6.x86_64.rpm                                                                                                                               |  78 kB     00:00     
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------</span>
Total                                                                                                                                                         299 kB/s | 162 kB     00:00     
Running rpm<span>_check_</span>debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
<span>  Installing : php-pdo-5.3.3-40.el6_6.x86_64                                                                                                                                              1/2 </span><span>  Installing : php-mysql-5.3.3-40.el6_6.x86_64                                                                                                                                            2/2 </span><span>  Verifying  : php-pdo-5.3.3-40.el6_6.x86_64                                                                                                                                              1/2 </span><span>  Verifying  : php-mysql-5.3.3-40.el6_6.x86_64                                                                                                                                            2/2 </span>Installed:
<span>  php-mysql.x86_64 0:5.3.3-40.el6_6                                                                                                                                                           </span>Dependency Installed:
<span>  php-pdo.x86_64 0:5.3.3-40.el6_6                                                                                                                                                             </span>Complete!
[root@LAMP1 controllers]# /etc/init.d/httpd restart</code>
登录后复制

以上就介绍了centos下使得php支持mysql,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。

相关标签:
来源:php.cn
本站声明
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板