为 mysql 配置 php.ini

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/10022092/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-24 21:09:13  来源:igfitidea点击:

configuring php.ini for mysql

phpmysqlapache

提问by Brad Bailey

I'm trying to install phpmyadmin on windows. I get the dreaded The mysql extension is missing. Please check your PHP configuration.

我正在尝试在 Windows 上安装 phpmyadmin。我得到了可怕的 mysql 扩展丢失。请检查您的 PHP 配置。

I've looked for hours, and every fix I find causes apache to not start again. Here are my version informations.

我已经找了几个小时,我发现的每一个修复都会导致 apache 无法再次启动。这是我的版本信息。

phpMyAdmin 3.4.10

MySQL5.5

PHP Version 5.2.17

Apache 2.2.21

Windows XP

phpMyAdmin 3.4.10

MySQL5.5

PHP 版本 5.2.17

阿帕奇 2.2.21

视窗 XP

I'm at wits' end.

我不知所措。

回答by Sankalp

In php.ini you must be missing this

在 php.ini 中你一定缺少这个

    ;extension=php_exif.dll      ; Must be after mbstring as it depends on it
    extension=php_mysql.dll
    extension=php_mysqli.dll
    ;extension=php_oci8.dll    

Note the un-semicoloned lines.

请注意未分号的行。

There are some good tutorials as well

还有一些很好的教程

Apache Guide

阿帕奇指南