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.

13 lines
311 B

4 years ago
3 years ago
  1. #!/bin/bash
  2. . ./_docker-cmd.sh || {
  3. echo "no docker cmd is presented" && exit 1
  4. }
  5. CONTAINER=$(docker ps | grep mariadb | awk '{print $1}')
  6. if [[ -z "${CONTAINER}" ]]; then
  7. echo "Unable to find container: db"
  8. exit 1
  9. fi
  10. $DOCKER_CMD exec -ti ${CONTAINER} bash -c 'LANG=ru_RU.UTF-8 mysql -u root -p123456'