MariaDB创建远程用户访问,并设置只允许访问一个数据库.
create user 'user'@'%' identified by 'mm123456';
grant all privileges on road.* to 'user'@'%';
flush privileges;
create user 'user'@'%' identified by 'mm123456';
grant all privileges on road.* to 'user'@'%';
flush privileges;