Connect Container To Local MySQL Workbench | Local MySQL Workbench + Docker Container over SSH |

Subscribers:
1,490
Published on ● Video Link: https://www.youtube.com/watch?v=XRkv46KCoWI



Duration: 17:50
1,669 views
14


Connect Container To Local MySQL Workbench | Local MySQL Workbench + Docker Container over SSH |

Docker container connect with Local Mysql Workbench

If you dont have container then run this
command and make a container

Make a container
docker run -it -p 4000:80 -v /var/www/html/lms_container/:/var/www/html/
--restart=always --name=lms -d waqargolpik/lamp:php7.4


I already have my container running///

go inside container

docker exec -it container_name bash

1) INSTALL Open ssh

i)apt update
ii)apt install openssh-server

change configuration:

go to this directory and edit
nano /etc/ssh/sshd_config

search these lines via ctrl + w
i) Port 22 Uncomment
ii) PermitRootLogin yes
iii)PasswordAuthentication yes
iv) X11Forwarding yes

now save file with ctrl + o then ctrl + x

Set password for ssh
passwd

service ssh restart


now come out the docker
2) Install workbench in local machine
https://linuxhint.com/installing_mysql_workbench_ubuntu/
https://dev.mysql.com/downloads/repo/apt/

these installtinon doc is obselete
you can install as i did :)
now search for the workbench in local pc

after installing manually you can follow this doc

now check the ip of your docker container

via docker inspect container_name

here put the password which you set via

passwd command

here put the container mysql password
which you set for phpmyadmin


restart the service of mysql inside docker then check connection




Other Videos By VismoTech IT Training


2021-11-28Introduction To Linux | Linux vs Unix | Linux Hindi Urdu Tutorial
2021-11-23Funny Video Best way to Secure to be Hacked | Get Info and secure your website |
2021-11-23How To Connect Jenkins To Linux | How To Write Shell Script In Jenkins To Target VM
2021-11-23Install Jenkins on Linux Easiest Way 4 Commands | DevOps Tutorials |
2021-11-22Customize Linux Remote Machine Welcome Message | Linux Guide | Linux For DevOps
2021-11-15Best Motivational Speech For Job Less and Students | Motivation For Fear |
2021-11-07Best Remote Support Software ConnectWise screen connect Full Quick Tutorial
2021-09-11How Fast My CI/CD Deploy | Jenkins + GitLab + Docker CI/CD Pipeline |
2021-09-11Install LAMP Stack (Linux, Apache, MySQL, PHP) in Ubuntu 20.04
2021-09-11Complete Jenkins CI/CD Using GitLab and Docker | Jenkins Deployment To Docker Container |
2021-09-08Connect Container To Local MySQL Workbench | Local MySQL Workbench + Docker Container over SSH |
2021-09-05How to Fix “Username is not in the sudoers file. This incident will be reported” in Ubuntu
2021-08-28AWS-VPC Live Session 🔴 | AWS Virtual Private Cloud | AWS Cloud Computing
2021-08-06Route 53 With DNS And Routing Policies Live 🔴 | AWS Training In Hindi |
2021-08-06Salesforce Fundamentals For Beginners Live 🔴 Session LAB | Salesforce In Hindi |
2021-08-06Salesforce Fundamentals For Beginners Live 🔴 Session Theory | Salesforce In Hindi |
2021-08-05Pantheon Complete Course | Pantheon a DevOps Tool | Solution for CI/CD
2021-07-31Jenkins and AWS EC2 Connection Over SSH | Jenkins CI/CD EC2 Instance |
2021-07-20Resolve git error Cannot lock ref 'refs/remotes/origin/master'
2021-07-20Linux Basic Commands | Linux For Beginners | Linux Tutorial
2021-07-20What You Can`t Do ? | Motivational Story |



Tags:
container
docker
images
mysql
mysql docker
docker mysql
installation
docker pull
mysql container
docker run
docker run mysql
run mysql
devops
localhost to docker container
docker container local database setup
database setup docker