成功!!!!
我不声称对其他人有解决方案,但是,这是经过多次折腾后最终对我有用的方法。我正在开发基于 Windows Vista 的环境,仅供参考。
卸载:MySQL、Apache 和 PHP。确保所有相关服务不再运行并且已被删除(通常卸载会处理此问题,但并非总是如此)。从本质上讲,清洁石板。
转到(不确定是否允许)www.WAMPServer.com 在那里我下载了 Apache 2.2.22 - MySQL 5.5.24 - PHP 5.4.3 XDebug 2.1.2 XDC 1.5 PhpMyadmin 3.4.10.1 SQLBuddy 1.3.3 webGrind 的组1.0
对于安装,我只是按照屏幕提示进行操作。
有一些配置设置如下: 在 HTTPD.CONF
ServerRoot (set according to where Apache is installed)
Listen 80
ServerName localhost:80
LoadModule php5_module "c:/wamp/bin/php/php5.4.3/php5apache2_2.dll"
* Note the above line - you may have to copy the dll into that directory if not there
#
# This should be changed to whatever you set DocumentRoot to.
#
# <Directory "c:/wamp/www/">
<Directory "C:/wamp/bin/apache/apache2.2.22/htdocs">
* Note - above line will be changed to match your htdocs directory
#
# "C:/Program Files/Apache Software Foundation/Apache2.2/cgi-bin"
# CGI directory exists, if you have that configured.
#
<Directory "C:\wamp\bin\apache\apache2.2.22\cgi-bin">
* In the section <IfModule mime_module>
AddType application/x-httpd-php .php
AddType application/x-httpd-php .php3
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
* Note at the end of the CONF file set the directory where the PHP.INI file is located
PHPIniDir "C:\wamp\bin\php\php5.4.3"
在 PHP.INI 文件中:
extension=php_mysql.dll
extension=php_mysqli.dll
extension=php_pdo_mysql.dll
extension=php_pdo_sqlite.dll
在 My.INI 文件中:
# The MySQL server
[wampmysqld]
port = 3306
socket = /tmp/mysql.sock
key_buffer = 16M
max_allowed_packet = 1M
table_cache = 64
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M
basedir=c:/wamp/bin/mysql/mysql5.5.24
log-error=c:/wamp/logs/mysql.log
datadir=c:/wamp/bin/mysql/mysql5.5.24/data
[mysqld]
port=3306
之后我去了 MySQL.com 并下载了 MySQL Workbench GUI Tool。我使用它来创建数据库、模式、表等。第一次使用工作台时,请确保您拥有正确的端口#3306(或您的首选端口)。如果您创建用户和密码,请记住记下它们,因为它们将在您的“连接”语句中使用。
我差点忘了。确保这两个 dll 在你的 PHP/Ext 目录下 php_mysql.dll 和 php_mysqli.dll
我下班了...我希望这可以帮助您解决问题。
最诚挚的问候,特里