Skip to content

Instantly share code, notes, and snippets.

View shadyueh's full-sized avatar
🏠
Working from home

Held Grijo shadyueh

🏠
Working from home
View GitHub Profile
@shadyueh
shadyueh / ssh.sh
Created April 9, 2021 05:02 — forked from zircote/ssh.sh
Convert a AWS PEM into a ssh pub key
ssh-keygen -y -f private_key1.pem > public_key1.pub
@shadyueh
shadyueh / import.md
Created June 21, 2021 17:10 — forked from iamstoick/import.md
How to import database in MySQL in Docker?

This is a simple way of importing MySQL database in Docker.

  1. In you Dockerfile you must have a shared folder. Shared folder is a directory in your host machine that is mounted to Docker instance.

  2. Put the exported sql file in the shared folder.

  3. Login to your Docker instance via docker exec -it DOCKER_CONTAINER_ID bin/bash.

  4. Login to MySQL via mysql -u USERNAME -p.