Ingrese a la base de datos MYSQL
use mysql
Agregue 192.168. *. * Usuario root autorizado para acceder a todas las bases de datos del servidor;
otorgue todos los privilegios en *. * To'root'@'192.168.%.% 'identificado por'pure111 @ 111' con opción de concesión;
Actualizar
los privilegios de descarga de ejecución ;
Verifique la información (si está bien)
seleccione Host, User from user;
OTORGAR TODOS LOS PRIVILEGIOS EN *. * A 'root'@'120.111.%.%' IDENTIFICADO POR 'pure111 @ 1119' CON OPCIÓN DE OTORGAMIENTO;
OTORGAR TODOS LOS PRIVILEGIOS EN *. * A 'root'@'202.111.%.%' IDENTIFICADO POR 'pure111 @ 111' CON OPCIÓN DE OTORGAMIENTO;
OTORGAR TODOS LOS PRIVILEGIOS EN *. * A 'root'@'202.111.111.111' IDENTIFICADO POR 'pure111 @ 111' CON OPCIÓN DE OTORGAMIENTO;
Mostrar el nombre de la
base de datos mostrar las bases de datos;
mostrar tablas ;
MySQL autoriza el segmento de IP de inicio de sesión del usuario
172.16.1.0/24
GRANT ALL PRIVILEGES ON *.* TO test@'172.16.1.%' identified by 'test123456' 即可。
172.16.0.0/16
GRANT ALL PRIVILEGES ON *.* TO test@'172.16.%' identified by 'test123456' 即可。
Método de autorización MySQL para un determinado tipo (un determinado campo abierto) base de datos
Bases de datos que comienzan con bbs_
grant all on `bbs_%`.* to test@'172.16.1.3' identified by 'test123456';