Loading... <p> <span style="color:#65737e;font-family:'Arial, 宋体';"><span style="font-size:13px;background-color:#FFFFFF;">在amh里面搜索pdo模块并安装</span></span> </p> <p> <span style="color:#65737E;font-family:Arial, 宋体;font-size:13px;white-space:normal;background-color:#FFFFFF;"><br /> </span> </p> <p> <span style="color:#65737E;font-family:Arial, 宋体;font-size:13px;white-space:normal;background-color:#FFFFFF;">下载pdo 解压 </span> </p> <p> <span style="color:#65737E;font-family:Arial, 宋体;font-size:13px;white-space:normal;background-color:#FFFFFF;">wget http://pecl.php.net/get/PDO_MYSQL-1.0.2.tgz</span> </p> <span style="color:#65737E;font-family:Arial, 宋体;font-size:13px;white-space:normal;background-color:#FFFFFF;">tar -zxvf PDO_MYSQL-1.0.2.tgz</span><br style="color:#65737E;font-family:Arial, 宋体;font-size:13px;white-space:normal;background-color:#FFFFFF;" /> <p> <br /> </p> <p> 打开pdo目录 进行编译 </p> <p> <span style="color:#65737E;font-family:Arial, 宋体;font-size:13px;white-space:normal;background-color:#FFFFFF;">cd PDO_MYSQL-1.0.2</span> </p> <p> <span style="color:#65737E;font-family:Arial, 宋体;font-size:13px;white-space:normal;background-color:#FFFFFF;"><span style="color:#65737E;font-family:Arial, 宋体;font-size:13px;white-space:normal;background-color:#FFFFFF;">/usr/local/php/bin/phpize</span></span> </p> <p> <span style="color:#65737E;font-family:Arial, 宋体;font-size:13px;white-space:normal;background-color:#FFFFFF;"><span style="color:#65737E;font-family:Arial, 宋体;font-size:13px;white-space:normal;background-color:#FFFFFF;">./configure --with-php-config=/usr/local/php/bin/php-config -with-pdo-mysql=/usr/local/mysql/bin/mysql_config</span></span> </p> <p> <span style="color:#65737E;font-family:Arial, 宋体;font-size:13px;white-space:normal;background-color:#FFFFFF;"><span style="color:#65737E;font-family:Arial, 宋体;font-size:13px;white-space:normal;background-color:#FFFFFF;">make && make install</span></span> </p> <p> <span style="color:#65737E;font-family:Arial, 宋体;font-size:13px;white-space:normal;background-color:#FFFFFF;"><br /> </span> </p> <p> <span style="color:#65737e;font-family:'Arial, 宋体';"><span style="font-size:13px;background-color:#FFFFFF;">记住<span style="color:#65737E;font-family:Arial, 宋体;font-size:13px;white-space:normal;background-color:#FFFFFF;">p</span><span style="color:#65737E;font-family:Arial, 宋体;font-size:13px;white-space:normal;background-color:#FFFFFF;">d</span><span style="color:#65737E;font-family:Arial, 宋体;font-size:13px;white-space:normal;background-color:#FFFFFF;">o</span>目录</span></span> </p> <p> <span style="color:#65737E;font-family:Arial, 宋体;font-size:13px;white-space:normal;background-color:#FFFFFF;"><span style="color:#65737E;font-family:Arial, 宋体;font-size:13px;white-space:normal;background-color:#FFFFFF;"><span style="color:#65737E;font-family:Arial, 宋体;font-size:13px;white-space:normal;background-color:#FFFFFF;">/usr/local/php/lib/php/extensions/no-debug-non-zts-20xxxxx/pdo_mysql.so</span></span><br /> </span> </p> <p> <span style="color:#65737e;font-family:'Arial, 宋体';"><span style="font-size:13px;background-color:#FFFFFF;">编辑php.ini</span></span> </p> <p> <span style="color:#65737e;font-family:'Arial, 宋体';"><span style="font-size:13px;background-color:#FFFFFF;">vim <span style="color:#65737E;font-family:Arial, 宋体;font-size:13px;white-space:normal;background-color:#FFFFFF;">/etc/php.i</span><span style="color:#65737E;font-family:Arial, 宋体;font-size:13px;white-space:normal;background-color:#FFFFFF;">n</span><span style="color:#65737E;font-family:Arial, 宋体;font-size:13px;white-space:normal;background-color:#FFFFFF;">i</span></span></span> </p> <p> <br /> </p> <p> 找到最下面一行 把路径改了 </p> 最后修改:1970 年 01 月 01 日 © 允许规范转载 打赏 赞赏作者 赞 如果觉得我的文章对你有用,请随意赞赏