• <legend id='PYqaP'><style id='PYqaP'><dir id='PYqaP'><q id='PYqaP'></q></dir></style></legend>

    <small id='PYqaP'></small><noframes id='PYqaP'>

      <bdo id='PYqaP'></bdo><ul id='PYqaP'></ul>

      1. <tfoot id='PYqaP'></tfoot>
        <i id='PYqaP'><tr id='PYqaP'><dt id='PYqaP'><q id='PYqaP'><span id='PYqaP'><b id='PYqaP'><form id='PYqaP'><ins id='PYqaP'></ins><ul id='PYqaP'></ul><sub id='PYqaP'></sub></form><legend id='PYqaP'></legend><bdo id='PYqaP'><pre id='PYqaP'><center id='PYqaP'></center></pre></bdo></b><th id='PYqaP'></th></span></q></dt></tr></i><div id='PYqaP'><tfoot id='PYqaP'></tfoot><dl id='PYqaP'><fieldset id='PYqaP'></fieldset></dl></div>
      2. PHP - 如何安装 PDO 驱动程序?(视窗)

        时间:2023-09-20

        1. <tfoot id='YSuQJ'></tfoot>
            <i id='YSuQJ'><tr id='YSuQJ'><dt id='YSuQJ'><q id='YSuQJ'><span id='YSuQJ'><b id='YSuQJ'><form id='YSuQJ'><ins id='YSuQJ'></ins><ul id='YSuQJ'></ul><sub id='YSuQJ'></sub></form><legend id='YSuQJ'></legend><bdo id='YSuQJ'><pre id='YSuQJ'><center id='YSuQJ'></center></pre></bdo></b><th id='YSuQJ'></th></span></q></dt></tr></i><div id='YSuQJ'><tfoot id='YSuQJ'></tfoot><dl id='YSuQJ'><fieldset id='YSuQJ'></fieldset></dl></div>
              <tbody id='YSuQJ'></tbody>

              <small id='YSuQJ'></small><noframes id='YSuQJ'>

                <bdo id='YSuQJ'></bdo><ul id='YSuQJ'></ul>
                  <legend id='YSuQJ'><style id='YSuQJ'><dir id='YSuQJ'><q id='YSuQJ'></q></dir></style></legend>

                1. 本文介绍了PHP - 如何安装 PDO 驱动程序?(视窗)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我正在 Windows 8.1 上设置 PHP 和 MySQL (Maria DB).我编辑了 php.ini 文件并取消了以下几行的注释:

                  I am setting up PHP and MySQL (Maria DB) on Windows 8.1. I edited php.ini file and uncommented the following lines:

                  extension=php_mysql.dll
                  extension=php_mysqli.dll
                  extension=php_pdo_mysql.dll
                  

                  但不幸的是,我无法连接到数据库,因为 phpinfo 输出中没有显示 pdo 驱动程序.所以,当我尝试建立数据库连接时,抛出异常:

                  But unfortunately I cannot connect to database because there are no pdo drivers shown in phpinfo output. So, when I try to establish database connection, an exception is thrown:

                  Fatal error: Uncaught exception 'PDOException' with message 'could not find driver'
                  

                  如何解决这个问题?

                  推荐答案

                  最后我设法解决了这个问题.我更正了 php.ini 文件中的 extension_dir 条目(需要绝对文件路径),数据库连接开始工作.

                  Finaly I managed to settle this stuff. I corrected extension_dir entry (absolute file path was needed) in php.ini file and database connection began to work.

                  这篇关于PHP - 如何安装 PDO 驱动程序?(视窗)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:PDO bindParam 问题 下一篇:如何确保 PDO 的 lastInsertId() 不是另一个同时插入

                  相关文章

                  最新文章

                  1. <small id='Bj26W'></small><noframes id='Bj26W'>

                    <legend id='Bj26W'><style id='Bj26W'><dir id='Bj26W'><q id='Bj26W'></q></dir></style></legend>
                  2. <tfoot id='Bj26W'></tfoot>

                    <i id='Bj26W'><tr id='Bj26W'><dt id='Bj26W'><q id='Bj26W'><span id='Bj26W'><b id='Bj26W'><form id='Bj26W'><ins id='Bj26W'></ins><ul id='Bj26W'></ul><sub id='Bj26W'></sub></form><legend id='Bj26W'></legend><bdo id='Bj26W'><pre id='Bj26W'><center id='Bj26W'></center></pre></bdo></b><th id='Bj26W'></th></span></q></dt></tr></i><div id='Bj26W'><tfoot id='Bj26W'></tfoot><dl id='Bj26W'><fieldset id='Bj26W'></fieldset></dl></div>
                    • <bdo id='Bj26W'></bdo><ul id='Bj26W'></ul>