우분투 php5-mysql 설치

우분투 php5-mysql 설치

1 확인[ | ]

root@zetawiki:~# php -m | grep mysql
root@zetawiki:~# dpkg --get-selections | grep php5-mysql
root@zetawiki:~# aptitude show php5-mysql | grep ^State
State: not installed

2 설치[ | ]

root@zetawiki:~# apt-get install php5-mysql
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  php5-mysql
0 upgraded, 1 newly installed, 0 to remove and 65 not upgraded.
Need to get 63.0 kB of archives.
After this operation, 297 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ trusty-updates/main php5-mysql amd64 5.5.9+dfsg-1ubuntu4.17 [63.0 kB]
Fetched 63.0 kB in 0s (68.6 kB/s)     
Selecting previously unselected package php5-mysql.
(Reading database ... 66105 files and directories currently installed.)
Preparing to unpack .../php5-mysql_5.5.9+dfsg-1ubuntu4.17_amd64.deb ...
Unpacking php5-mysql (5.5.9+dfsg-1ubuntu4.17) ...
Processing triggers for libapache2-mod-php5 (5.5.9+dfsg-1ubuntu4.17) ...
Setting up php5-mysql (5.5.9+dfsg-1ubuntu4.17) ...

Creating config file /etc/php5/mods-available/mysql.ini with new version
php5_invoke: Enable module mysql for apache2 SAPI
php5_invoke: Enable module mysql for cli SAPI

Creating config file /etc/php5/mods-available/mysqli.ini with new version
php5_invoke: Enable module mysqli for apache2 SAPI
php5_invoke: Enable module mysqli for cli SAPI

Creating config file /etc/php5/mods-available/pdo_mysql.ini with new version
php5_invoke: Enable module pdo_mysql for apache2 SAPI
php5_invoke: Enable module pdo_mysql for cli SAPI
Processing triggers for libapache2-mod-php5 (5.5.9+dfsg-1ubuntu4.17) ...

3 확인 2[ | ]

root@zetawiki:~# php -m | grep mysql
mysql
mysqli
pdo_mysql
root@zetawiki:~# dpkg --get-selections | grep php5-mysql
php5-mysql					install
root@zetawiki:~# aptitude show php5-mysql | grep ^State
State: installed

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}