zxub

  2004.11.03发表于blog.csdn.net/zxub

  从网上下载phpMyAdmin-2.5.7.zip后,解压,改名字为dbm(主要是不愿输入phpMyAdmin-2.5.7那么一串,人懒,嘿嘿),并存放到默认网站根目录下。在dbm中找到config.inc.php,找到第一个$cfg[\'Servers\'][$i][\'user\']=,修改后面的为sa,下面的密码不管了,让它为空,在上面几行里找到$cfg[\'Servers\'][$i][\'host\']          =,注意让后面的值为\'localhost\',$cfg[\'Servers\'][$i][\'port\']          = \'\'改为$cfg[\'Servers\'][$i][\'port\']          = \'3306\',保存。
  在浏览器输入http://localhost/dbm/index.php就可以看到管理页面了。
  这时候,我们可以看到是不能创建新数据库的,这是因为我们没有用root帐户登陆,只要在上面的$cfg[\'Servers\'][$i][\'user\']=\'sa\'中将sa改为root就可以了。
   在管理页面显示中可能会有

      必须在您的配置文件中设定 $cfg[\'PmaAbsoluteUri\'] 指令!

  这时,我们可在config.inc.php找到$cfg[\'PmaAbsoluteUri\'] = \'\',将\'\'内改为phpMyAdmin所在的URL,如我的是http://localhost/dbm,修改后是:$cfg[\'PmaAbsoluteUri\'] = \'http://localhost/dbm\'。
  还有些安全性的问题就不多说了,现在我自己还不怎么清楚,嘿嘿~~
  Over 了。

分类:

技术点:

相关文章:

  • 2021-11-03
  • 2021-11-30
  • 2021-04-15
  • 2022-12-23
  • 2021-05-30
  • 2021-11-01
  • 2021-12-22
猜你喜欢
  • 2021-06-21
  • 2021-08-29
  • 2021-06-12
  • 2021-07-10
  • 2021-11-11
  • 2021-07-11
  • 2022-01-24
相关资源
相似解决方案