Public Repository

Last pushed: 2 years ago
Short Description
tto_db server is a folk of the Percona Server
Full Description

TTO PERCONA IMAGE

  • Debian 8
  • Percona Server 5.6

1 - PULL IMAGE

# docker pull percona:5.6

2 - RUN

# docker run -it --name tto_db -v /data/ttolab/mysql/conf/my.cnf:/etc/my.cnf -v /data/ttolab/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=tto123@ -d percona:5.6

3 - TIMEZONE

# docker exec -it tto_db bash
root@597de147a2fa:/# rm -f /etc/localtime 
root@597de147a2fa:/# ln -s /usr/share/zoneinfo/Asia/Ho_Chi_Minh /etc/localtime
root@597de147a2fa:/# date

4 - CONNECT DATABASE (create databases, users ...)

# docker exec -it tto_db mysql -uroot -ptto123@

5 - IMPORT DATABASE

# docker exec -i tto_db mysql -uroot -ptto123@ < ttonew_struct.sql
Docker Pull Command
Owner
vietdien2005

Comments (0)