现在至少需要mysql添加一个只读权限

INSERT INTO user (Host,User,Password) VALUES('%','zhouwei',PASSWORD('zhouwei'));
update user set Show_db_priv='Y',Select_priv='Y' where Host='%' and User='zhouwei';
FLUSH PRIVILEGES;



然后添加phpmyadmin/config.inc.php

/*
 * End of servers configuration
 */

在这行注释只上添加



/**
#example
$i++;
# Authentication type and info
$cfg['Servers'][$i]['auth_type']            = 'config';
$cfg['Servers'][$i]['user']                 = 'zhouwei';
$cfg['Servers'][$i]['password']             = 'zhouwei';
$cfg['Servers'][$i]['AllowNoPassword']      = true;
$cfg['Servers'][$i]['host']             = 'localhost';
$cfg['Servers'][$i]['port']             = '3306';
$cfg['Servers'][$i]['connect_type']     = 'tcp';
$cfg['Servers'][$i]['compress']         = false;
$cfg['Servers'][$i]['extension'] = 'mysqli';
*/

相关文章:

  • 2021-11-23
  • 2021-08-27
  • 2021-11-26
  • 2021-11-25
  • 2022-01-29
  • 2021-09-01
猜你喜欢
  • 2021-03-30
  • 2022-01-13
  • 2021-11-18
  • 2021-11-18
  • 2022-01-31
  • 2022-02-09
  • 2021-10-13
相关资源
相似解决方案