Comments (3)
@rankun203 mounting the file or volume is one way of doing it. another way would be to add --volume=/run/mysqld:/run/mysqld
to the run command to expose the mysql domain socket to the host. Now you can install mysql-client on your host and access the server in the container via the unix domain socket.
from docker-mysql.
Thank you @sameersbn, That's also a way to achieve that. I add a user to mysql, and use a local mysql client to connect it through SSH :-)
I'm wondering if there is an easier way to init the database just after Docker build.
from docker-mysql.
@rankun203 at the moment there is no way to specify an init script to initialize the database.
from docker-mysql.
Related Issues (20)
- DB_USER can not connect remotly HOT 1
- Cannot run image HOT 3
- Best way to Tweak my.cnf
- Is there a way to enable event scheduler on start? HOT 2
- DB_REMOTE_ROOT_HOST still defaults to 172.17.42.1
- DB backup HOT 3
- Data store HOT 1
- Cannot get into the docker "Can't connect" HOT 3
- Why not releases ? HOT 3
- Request; add usermod function like sameersbn/docker-gitlab
- Latest mysql image having issue with gitlab HOT 1
- Access denied for user 'root'@'localhost' (using password: NO)
- Error with `docker-compose.yml` HOT 1
- ERROR 1133 (42000) at line 1: Can't find any matching row in the user table
- Freezes @ "mysqld_safe Starting mysqld daemon with databases from /var/lib/my"sql HOT 1
- Question about the value of max_binlog_cache_size
- Version '5.7.26*' for 'mysql-server' was not found in ubuntu:bionic-20190612 HOT 2
- How To Create A Database and Credentials?
- How to edit my.conf HOT 1
- Upgrade from very old docker image
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-mysql.