脚本导入sql数据 如:
mysql -h192.168.55.5 -u账户 -p密码 表名 < areas.sql
修改文件的执行权限: chmod +x import_areas_data_to_db.sh
然后执行如下命令导入数据: ./import_areas_data_to_db.sh