![]() |
|
首页 │ Apache │ Linux│ Java│ MySQL│ 注册│帮助 | |||
我装了PHP4+Apache,都是本地的,没有连接因特网,可以正常使用,PHP装在D:/Web/PHP中,Apache装在D:/Web/Apache中,然后我下载了MySQL5.0.1安装在D:/Web/mysql文件夹里了,第一次安装,按要求填了,也可以运行,运行了以后
闪了一下就最小化到右下角去了,我点那个小图标→Show me,出现mysql的主界面,在MyODBC框下面有二排灰色的字:
Not Found
Driver 3.51 Not Found
然后在my.ini Setup的内容为:
#This File was made using the WinMySQLAdmin 1.4 Tool
#2004-10-29 20:12:12
#Uncomment or Add only the keys that you know how works.
#Read the MySQL Manual for instructions
[mysqld]
basedir=D:/Web/mysql
#bind-address=172.0.10.53
datadir=D:/Web/mysql/data
#language=D:/Web/mysql/share/your language directory
#slow query log#=
#tmpdir#=
#port=3306
#set-variable=key_buffer=16M
[WinMySQLadmin]
Server=D:/Web/mysql/bin/mysqld-nt.exe
user=root
password=root
请问这个是正常的吗?
如果正常,那么我开始装phpMyAdmin 2.6.0-beta2
了,直接解压后放到D:/PHP中(我把PHP的运行目录改成了D:/PHP),名字没有变还是phpMyAdmin,然后我在浏览器中打上了:127.0.0.1/phpMyAdmin然后网页就变成了下面这段提示话了:
欢迎使用 phpMyAdmin 2.6.0-beta2
phpMyAdmin 试图连接到 MySQL 服务器,但服务器拒绝连接。您应该检查 config.inc.php 中的主机、用户名和密码,并且确定这些信息与 MySQL 服务器的管理员所给出的信息一致。
我在config.inc.php文件中找到以下字段:
$cfg['blowfish_secret'] = 'root';
/**
* Server(s) configuration
*/
$i = 0;
// The $cfg['Servers'] array starts with $cfg['Servers'][1]. Do not use $cfg['Servers'][0].
// You can disable a server config entry by setting host to ''.
$i++;
$cfg['Servers'][$i]['host'] = 'localhost'; // MySQL hostname or IP address
$cfg['Servers'][$i]['port'] = ''; // MySQL port - leave blank for default port
$cfg['Servers'][$i]['socket'] = ''; // Path to the socket - leave blank for default socket
$cfg['Servers'][$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
$cfg['Servers'][$i]['extension'] = 'mysql'; // The php MySQL extension to use ('mysql' or 'mysqli')
$cfg['Servers'][$i]['compress'] = FALSE; // Use compressed protocol for the MySQL connection
// (requires PHP >= 4.3.0)
$cfg['Servers'][$i]['controluser'] = ''; // MySQL control user settings
// (this user must have read-only
$cfg['Servers'][$i]['controlpass'] = ''; // access to the "mysql/user"
// and "mysql/db" tables).
// The controluser is also
// used for all relational
// features (pmadb)
$cfg['Servers'][$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = 'root'; // MySQL password (only needed
// with 'config' auth_type)
$cfg['Servers'][$i]['only_db'] = ''; // If set to a db-name, only
// this db is displayed in left frame
// It may also be an array of db-names, where sorting order is relevant.
$cfg['Servers'][$i]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname
里面也不知道怎么设置,到底是MySQL出了问题还是phpMyAdmin中的设置有问题呢?
请懂的朋友说下,我是新来的,也许以前有朋友问过了,我没看见,我再问一次,请朋友们见谅,先说声不好意思了!

