CREATE USER 'blackcar'@'%' IDENTIFIED BY 'Blackcar8866@';

GRANT SELECT ON `black-car`.`hk_black_smoke_vehicle` TO 'blackcar'@'%';
GRANT SELECT ON `black-car`.`hk_camera_info` TO 'blackcar'@'%';
GRANT SELECT ON `black-car`.`hk_point` TO 'blackcar'@'%';
GRANT SELECT ON `black-car`.`hk_point_environmental_data` TO 'blackcar'@'%';
GRANT SELECT ON `black-car`.`hk_point_monitoring_line` TO 'blackcar'@'%';
GRANT SELECT ON `black-car`.`hk_run_location_record` TO 'blackcar'@'%';
GRANT SELECT ON `black-car`.`hk_traffic_flow_info` TO 'blackcar'@'%';
GRANT SELECT ON `black-car`.`hk_vehicle_data` TO 'blackcar'@'%';
GRANT SELECT ON `black-car`.`hk_vehicle_flow` TO 'blackcar'@'%';
GRANT SELECT ON `black-car`.`hk_yc_device_check` TO 'blackcar'@'%';
GRANT SELECT ON `black-car`.`hk_yc_device_self_check` TO 'blackcar'@'%';
GRANT SELECT ON `black-car`.`hk_yc_failure` TO 'blackcar'@'%';
GRANT SELECT ON `black-car`.`hk_yc_monitoring_data` TO 'blackcar'@'%';
