phpmyAdmin 菜: 怎么普通用户也能看到所有的用户信息及数据库?

wxq1142 2007-12-17 02:51:00
初学mysql ,感觉很费力! 怎么普通用户都能看到所有信息(虽然不能操作),msql不会这么菜吧!安全这样差,可怎么是好?

谁能告诉我如何配置mysql和phpmyadmin?

环境是2003+IIS+PHP6+mysql 5,myphpAdmin2.11.2.2


...全文
170 9 打赏 收藏 转发到动态 举报
写回复
用AI写文章
9 条回复
切换为时间正序
请发表友善的回复…
发表回复
wxq1142 2007-12-18
  • 打赏
  • 举报
回复
grant all privileges on yourdb.* to 'youruser'@'localhost' identified by 'yourpassword';
flush privileges;

这样仍然可以看到information_schema 数据库!

phpmyadmind 的config.inc.php这样配的
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
* phpMyAdmin sample configuration, you can use it as base for
* manual configuration. For easier setup you can use scripts/setup.php
*
* All directives are explained in Documentation.html and on phpMyAdmin
* wiki <http://wiki.cihar.com>.
*
* @version $Id: config.sample.inc.php 10142 2007-03-20 10:32:13Z cybot_tm $
*/

/*
* This is needed for cookie based authentication to encrypt password in
* cookie
*/
$cfg['blowfish_secret'] = 'wxq'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

/*
* Servers configuration
*/
$i = 0;

/*
* First server
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'cookie';
/* Server parameters */
$cfg['Servers'][$i]['host'] = 'localhost';
$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
/* Select mysqli if your server has it */
$cfg['Servers'][$i]['extension'] = 'mysql';
/* User for advanced features */
// $cfg['Servers'][$i]['controluser'] = 't1';
// $cfg['Servers'][$i]['controlpass'] = 'password';
/* Advanced phpMyAdmin features */
// $cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
// $cfg['Servers'][$i]['bookmarktable'] = 'pma_bookmark';
// $cfg['Servers'][$i]['relation'] = 'pma_relation';
// $cfg['Servers'][$i]['table_info'] = 'pma_table_info';
// $cfg['Servers'][$i]['table_coords'] = 'pma_table_coords';
// $cfg['Servers'][$i]['pdf_pages'] = 'pma_pdf_pages';
// $cfg['Servers'][$i]['column_info'] = 'pma_column_info';
// $cfg['Servers'][$i]['history'] = 'pma_history';
// $cfg['Servers'][$i]['designer_coords'] = 'pma_designer_coords';

/*
* End of servers configuration
*/

/*
* Directories for saving/loading files from server
*/
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';

?>
ershiwuying 2007-12-18
  • 打赏
  • 举报
回复
mysql一定没有问题,看你怎么弄phpmyadmin,需要密码管理 的,不明白你所说的普通用户也能看到具体是怎么样。
simon803 2007-12-18
  • 打赏
  • 举报
回复
你还是找点MYSQL权限设置方面的文档看看吧 。
这里是讨论不出来的 。
dreambird1983 2007-12-17
  • 打赏
  • 举报
回复
登录后选择“权限”,在用户列表中选择某用户后面的“操作”,即可编辑该用户的权限

mysql的权限机制没问题,看看是不是自己哪部分操作不正确导致了你以上的问题。
wxq1142 2007-12-17
  • 打赏
  • 举报
回复
to:gzty

我新加一个用户,没有任何权限的。但当在phpmyAdmin登录后,仍然能看到information_schema 数据库!

这很不好?

我想能否对普通用户只给其在某个数据库的权限,而不是一大堆的全局权限?
(最好能想ms sql 2000一样的安全分配)
tony-杨 2007-12-17
  • 打赏
  • 举报
回复
你先看看是不是你权限赋予那没搞好@!
fusion_gh 2007-12-17
  • 打赏
  • 举报
回复
这种配置方法很好,可支持asp,网上查查看,很多资料的
wxq1142 2007-12-17
  • 打赏
  • 举报
回复
请指点
tantaiyizu 2007-12-17
  • 打赏
  • 举报
回复
我恶意灌水?

21,886

社区成员

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

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