centos下使得php支援mysql

WBOY
發布: 2016-08-08 09:28:27
原創
1156 人瀏覽過

我這裡只安裝了一個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
熱門教學
更多>
最新下載
更多>
網站特效
網站源碼
網站素材
前端模板