mysqli.installation.html

来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 67 行

HTML
67
字号
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Installation</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="mysqli.setup.html">Installing/Configuring</a></div> <div class="next" style="text-align: right; float: right;"><a href="mysqli.configuration.html">Runtime Configuration</a></div> <div class="up"><a href="mysqli.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="mysqli.installation" class="section"> <h2 class="title">Installation</h2> <p class="para" id="mysqli.configure" name="mysqli.configure">  To install the mysqli extension for PHP, use the   <span class="option">--with-mysqli=mysql_config_path/mysql_config</span>  configuration option where <i>mysql_config_path</i> represents  the location of the <i>mysql_config</i> program that comes  with MySQL versions greater than 4.1.   </p> <p class="para">  If you would like to install the mysql extension along with the mysqli extension  you have to use the same client library to avoid any conflicts. </p> <div id="mysqli.installation.windows" class="section">  <h2 class="title">Installation on Windows Systems</h2>  <p class="para">   MySQLi is not enabled by default, so the   <var class="filename">php_mysqli.dll</var> DLL must be enabled inside of   <var class="filename">php.ini</var>. Also, PHP needs access to the MySQL client library. A file   named <var class="filename">libmysql.dll</var> is included in the Windows PHP   distribution and in order for PHP to talk to MySQL this file needs to be   available to the Windows systems <span class="envar">PATH</span>. See the FAQ   titled &quot;<a href="faq.installation.html#faq.installation.addtopath" class="link">How do I add my PHP   directory to the PATH on Windows</a>&quot; for information on how to do   this. Although copying <var class="filename">libmysql.dll</var> to the Windows   system directory also works (because the system directory is by default in   the system&#039;s <span class="envar">PATH</span>), it&#039;s not recommended.  </p>  <p class="para">   As with enabling any PHP extension (such as   <var class="filename">php_mysqli.dll</var>), the PHP directive   <a href="ini.core.html#ini.extension-dir" class="link">extension_dir</a> should be set to   the directory where the PHP extensions are located. See also the   <a href="install.windows.manual.html" class="link">Manual Windows Installation   Instructions</a>. An example extension_dir value for PHP 5 is   <i>c:\php\ext</i>  </p>  <blockquote><p><b class="note">Note</b>:        If when starting the web server an error similar to the following occurs:    <i>&quot;Unable to load dynamic library &#039;./php_mysqli.dll&#039;&quot;</i>,    this is because <var class="filename">php_mysqli.dll</var> and/or    <var class="filename">libmysql.dll</var> cannot be found by the system.   <br />  </p></blockquote> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="mysqli.setup.html">Installing/Configuring</a></div> <div class="next" style="text-align: right; float: right;"><a href="mysqli.configuration.html">Runtime Configuration</a></div> <div class="up"><a href="mysqli.setup.html">Installing/Configuring</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?