Objective
Choice is a brand-new beginning, the choice of towering cliff will need to have " long road its repair far, I will go up and down and seek " the belief; choose wave swell rolling sea will need to have "straight hanging Yun fan ji hai" lofty ambition; Choose the cold wind strength of the desert will need to have "drunken battlefield June mo Smile, In ancient time to fight a few people back to the broad bosom-----
First, install Pdo-mysql error 1
650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M02/9A/3A/wKioL1lTNrPDhixmAAACUu6tZhM147.png "title=" 111. PNG "alt=" Wkiol1ltnrpdhixmaaacuu6tzhm147.png "/>
First download the unpacking package to specify the path of the installation package
1. Tar zvxf/root/media/var/pdp_mysql
2. Cd/root/media/var/pdo_mysql
3. Remember to do a soft connection ln-s/usr/locatl/mysql/include*/usr/local/include # Note Here the path, especially when installing MySQL header files, note the path of the specified MySQL include.
4. Ln-s/usr/local/include/mysql/*/usr/local/include/#正常做法
5. After that you can/usr/local/phpize or/usr/bin/phpize can find the path where your phpize is located after you specify.
Two. There is a conflict with installation Pdo-mysql
1. No Php-devel found
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9A/44/wKiom1lTfNXRo6MWAAANHBrC9VE918.png "title=" 2017-06-28_175143.png "alt=" Wkiom1ltfnxro6mwaaanhbrc9ve918.png "/>
Workaround: Yum Install Php56w-devel
Error:php56w-common conflicts with php-common-5.4.16-42.el7.x86_64
You could try using--skip-broken to work around the problem
You could try Running:rpm-va--nofiles--nodigest
Li Shilong 2017.06.20 13:20 bo Master ID: I'm not nine, Sir .
Translation:
Error: Php56w-common conflict with PHP-common 5.4.16 el7.x86_64--42.
You can try to use--skip-broken to solve this problem
You can try to run: RPM va--nofile--nodigest
Workaround:
Can be installed yum-y install Php56w-openssl
Yum-y Install php56w Openssl-devel
may be less dependent on packages or perform RPM va-nofile-nodigest
Compiling the installation
./configure--with-php-config=/usr/local/bin/php-config--with-mysql=/usr/local/mysql/&&make && Make install
The note here is also to specify the path where your php-config is to be remembered.
After the successful installation of pdo-mysql you can go to the PHP test page you set up to see if there is MySQL under PDO.
650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/9A/3A/wKiom1lTPAqTFETnAAAIrfqf6ss247.png "title=" 111. PNG "alt=" wkiom1ltpaqtfetnaaairfqf6ss247.png "/> Install successfully see if you can connect to database Li Shilong 2017.06.20 13:20 Blogger ID: I'm not nine, Sir .
Summary: Encountering a failure is not scary, it's your principle. You'll find the answer you want if the principle is true.
This article from "Li Shilong" blog, declined reprint!
centos7.2 PDO MySQL Extension