MariaDB创建远程用户访问,并设置只允许访问一个数据库.

create user 'user'@'%'  identified by 'mm123456';

grant all privileges on road.* to 'user'@'%';

flush privileges;

猜你喜欢

转载自www.cnblogs.com/hui413027075/p/12371073.html