使用phpMyAdmin时出现的错误

lei_lei 2003-02-25 12:27:03
mysql已经开始运行,
但是调出phpMyAdmin时显示:

Willkommen bei phpMyAdmin 2.4.0

Fehler
MySQL meldet:

Unknown MySQL Server Host 'localhost' (11001)

如何解决?
...全文
363 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
pantech_36 2003-02-25
  • 打赏
  • 举报
回复
localhost ==>>换成IP
还有要真的确认MySQL SERVER在运行
sandyuk 2003-02-25
  • 打赏
  • 举报
回复
配置文件config

<?php
/* $Id: config.inc.php,v 1.80 2002/04/17 01:48:32 lem9 Exp $ */

$cfgPmaAbsoluteUri = 'http://192.168.0.111/mysqladmins/'; //你的phpMyAdmin 运行的 url


$i = 0;
// The $cfgServers array starts with $cfgServers[1]. Do not use $cfgServers[0].
// You can disable a server config entry by setting host to ''.
$i++;
$cfgServers[$i]['host'] = 'localhost'; // MySQL hostname(主机名)
$cfgServers[$i]['port'] = ''; // MySQL port - leave blank for default port
$cfgServers[$i]['socket'] = ''; // Path to the socket - leave blank for default socket
$cfgServers[$i]['connect_type'] = 'tcp'; // How to connect to MySQL server ('tcp' or 'socket')
$cfgServers[$i]['controluser'] = ''; // MySQL control user settings
// (this user must have read-only
$cfgServers[$i]['controlpass'] = ''; // access to the "mysql/user"
// and "mysql/db" tables)
$cfgServers[$i]['auth_type'] = 'config'; // Authentication method (config, http or cookie based)?
$cfgServers[$i]['user'] = 'root';//(用户名) // MySQL user
$cfgServers[$i]['password'] = ''; //(密码)  // MySQL password (only needed
// with 'config' auth_type)
$cfgServers[$i]['only_db'] = ''; // If set to a db-name, only
// this db is displayed
// at left frame
// It may also be an array
// of db-names
$cfgServers[$i]['verbose'] = ''; // Verbose name for this host - leave blank to show the hostname
$cfgServers[$i]['bookmarkdb'] = ''; // Bookmark db - leave blank for no bookmark support
$cfgServers[$i]['bookmarktable'] = ''; // Bookmark table - leave blank for no bookmark support
$cfgServers[$i]['relation'] = ''; // table to describe the relation between links (see doc)
// - leave blank for no relation-links support
// 如果你有多个MYSQL服务器,可配置以下(配置同上),否则不需要。

$i++;
$cfgServers[$i]['host'] = '192.168.0.1';
................
以下一般默认都可以了
------------------------------------------------------------------------------
$cfgServerDefault = 1; // 选择默认服务器(0,为没有默认服务器)

/**
* 语言选择
*/
$cfgDefaultLang = 'en';//默认为英文,zh为中文。
// $cfgLang = 'zh';//不出现语言选择项,直接使用此处语言。
// Loads language file
require('./libraries/select_lang.lib.php');
............
?>
e678 2003-02-25
  • 打赏
  • 举报
回复
用户名密码没有设置吧?

21,886

社区成员

发帖
与我相关
我的任务
社区描述
从PHP安装配置,PHP入门,PHP基础到PHP应用
社区管理员
  • 基础编程社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧