install
来自「linux下安装不上mysql5与php5的可用此关联」· 代码 · 共 51 行
TXT
51 行
REQUIREMENTSThe new MySQL native driver for PHP (mysqlnd) requires: - PHP 5 - MySQL 4.1 or newer BUILDING ON UNIX1) Get a copy of PHP 5For example, you can check out PHP 5, the current development version of PHP, from the CVS repository on php.net. See http://www.php.net/anoncvs.php for detailed instructions.me@myhost:~> cvs -d :pserver:cvsread@cvs.php.net:/repository checkout -r PHP_5_2 php52) Copy mysqlnd into the PHP 5 source treeRemove the ext/mysqli directory from your PHP directory, for example:me@myhost:~> cd php5me@myhost:~/php5> rm -rf ext/mysqliCopy mysqlnd into your PHP directory, for example:me@myhost:~/php5> cp -R ~/php-mysqlnd/php5/ext/mysqli ext/mysqli3) Run buildconfme@myhost:~/php5> ./buildconf --force4) Configure PHP with mysqlnd supportTo configure PHP with ext/mysqli using mysqlnd, youadd ext/mysqli to your PHP using '--with-mysqli' and tellit not to link against the MySQL client library, but to use mysqlnd by adding '--enable-mysqlnd'.me@myhost:~/php5> ./configure --with-mysqli --enable-mysqlndNote that you must not specify the path to the MySQLutility mysql_config. 5) Build PHPme@myhost:~/php5> make clean; make; make install
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?