初学mysql ,感觉很费力! 怎么普通用户都能看到所有信息(虽然不能操作),msql不会这么菜吧!安全这样差,可怎么是好?谁能告诉我如何配置mysql和phpmyadmin?环境是2003+IIS+PHP6+mysql 5,myphpAdmin2.11.2.2

解决方案 »

  1.   

    这种配置方法很好,可支持asp,网上查查看,很多资料的
      

  2.   

    to:gzty我新加一个用户,没有任何权限的。但当在phpmyAdmin登录后,仍然能看到information_schema 数据库!这很不好?我想能否对普通用户只给其在某个数据库的权限,而不是一大堆的全局权限?
    (最好能想ms sql 2000一样的安全分配)
      

  3.   

    登录后选择“权限”,在用户列表中选择某用户后面的“操作”,即可编辑该用户的权限mysql的权限机制没问题,看看是不是自己哪部分操作不正确导致了你以上的问题。
      

  4.   

    mysql一定没有问题,看你怎么弄phpmyadmin,需要密码管理 的,不明白你所说的普通用户也能看到具体是怎么样。
      

  5.   

    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]['booktable'] = 'pma_book';
    // $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'] = '';?>
      

  6.   

      你还是找点MYSQL权限设置方面的文档看看吧 。
      这里是讨论不出来的  。