Public Repository

Last pushed: 2 years ago
Short Description
Short description is empty for this repo.
Full Description

docker run -i -t -d -h="mysql1" --name="mysql1" -v /data/mysql:/data/mysql -p 172.17.42.1:3306:3306 yrdkiller/mysql /usr/bin/supervisord

ssh root@'docker inspect -f '{{ .NetworkSettings.IPAddress }}' mysql1'

password: ubuntu

[init]
mkdir -p /data/mysql/logs
mkdir -p /data/mysql/run
chown -R mysql:mysql /data/mysql
cp -a /var/lib/mysql /data/mysql/data

/etc/init.d/mysql restart

#mysql -uroot -p123456

use mysql
update user set Host="172.17.42.1" where Host='9a9b16fe8e87';
flush privileges;

Docker Pull Command
Owner
yrdkiller

Comments (0)