邓淳远、崔鹏宇、翁思扬组云计算期末项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
444 B

4 years ago
  1. #!/bin/bash
  2. set -e
  3. #查看mysql服务的状态,方便调试,这条语句可以删除
  4. echo `service mysql status`
  5. echo '1.启动mysql....'
  6. #启动mysql
  7. service mysql start
  8. sleep 3
  9. echo `service mysql status`
  10. #重新设置mysql密码
  11. echo '2.开始修改密码....'
  12. mysql < /mysql/privileges.sql
  13. echo '3.修改密码完毕....'
  14. #sleep 3
  15. echo `service mysql status`
  16. echo `mysql容器启动完毕,且数据导入成功`
  17. tail -f /dev/null