MySQL Forums
Forum List  »  General

initialize mysql in host and access in docker container
Posted by: Jakub Mitura
Date: September 27, 2022 08:47AM

I am creating the database like
mysql -u root -e "CREATE DATABASE IF NOT EXISTS example"

and I want to access it in the doker container like

"mysql://root@localhost/example"

both host and conteiner is ubuntu machine
I suppose answer is very simple but I got lost - Thanks !

Options: ReplyQuote


Subject
Written By
Posted
initialize mysql in host and access in docker container
September 27, 2022 08:47AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.