sitelink1 | http://php.net/manual/kr/pdo.installation.php |
---|---|
sitelink2 | |
extra_vars5 | |
extra_vars6 |
Installing PDO on Unix systems
-
PDO and the PDO_SQLITE driver is enabled by default as of PHP 5.1.0. You may need to enable the PDO driver for your database of choice; consult the documentation for database-specific PDO drivers to find out more about that.
Note:
When building PDO as a shared extension (not recommended) then all PDO drivers must be loaded after PDO itself.
-
When installing PDO as a shared module, the php.ini file needs to be updated so that the PDO extension will be loaded automatically when PHP runs. You will also need to enable any database specific drivers there too; make sure that they are listed after the pdo.so line, as PDO must be initialized before the database-specific extensions can be loaded. If you built PDO and the database-specific extensions statically, you can skip this step.
extension=pdo.so
Windows users
-
PDO and all the major drivers ship with PHP as shared extensions, and simply need to be activated by editing the php.ini file:
extension=php_pdo.dll
Note:
This step is not necessary for PHP 5.3 and above, as a DLL is no longer required for PDO.
-
Next, choose the other database-specific DLL files and either use dl() to load them at runtime, or enable them in php.ini belowphp_pdo.dll. For example:
extension=php_pdo.dll extension=php_pdo_firebird.dll extension=php_pdo_informix.dll extension=php_pdo_mssql.dll extension=php_pdo_mysql.dll extension=php_pdo_oci.dll extension=php_pdo_oci8.dll extension=php_pdo_odbc.dll extension=php_pdo_pgsql.dll extension=php_pdo_sqlite.dll
These DLLs should exist in the system's extension_dir.
Note:
Remember that after making changes to your php.ini file you will need to restart PHP for your new configuration directives to take effect.
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
13 | AutoSet PHP 버전 업그레이드 (7.2.10 to 7.4.32) | 황제낙엽 | 2022.10.09 | 639 |
12 | [Bitnami WAMP] 설치후 PHP 설정 | 황제낙엽 | 2020.07.23 | 206 |
11 |
Autoset의 대안 Bitnami WAMP
![]() | 황제낙엽 | 2020.04.01 | 244 |
10 | [AutoSet] SSL 적용가이드 (https) | 황제낙엽 | 2019.04.22 | 542 |
9 | Apache2.4 성능 개선 (아파치 공식사이트 제공) | 황제낙엽 | 2018.09.18 | 198 |
8 |
[AutoSet] 오토셋 소개 및 설치파일
![]() | 황제낙엽 | 2018.08.25 | 826 |
7 |
[APMSETUP] 설치파일
![]() | 황제낙엽 | 2018.08.25 | 829 |
6 | [APMSETUP] 에서 root 암호 분실시 초기화 방법 | 황제낙엽 | 2017.04.06 | 2499 |
» | Database Extensions 추상 레이어 PDO 설치/설정 | 황제낙엽 | 2016.07.27 | 510 |
4 | Apache Error : winnt_accept: Asynchronous AcceptEx failed | 황제낙엽 | 2016.06.15 | 592 |
3 | Windows에서 Apache(2.2.25)/PHP(5.4)/MYSQL(5.6.24) 설치 | 황제낙엽 | 2015.05.16 | 703 |
2 |
[APMSETUP7] PHP version upgrade (php5.2->php5.4)
![]() | 황제낙엽 | 2015.05.16 | 1251 |
1 |
현재 서버 셋팅 (Win APM : Windows + Apache + PHP + MySQL)
![]() | 황제낙엽 | 2006.03.21 | 240 |