docker run -p 3306:3306 –name mysql –restart=always -v /home/docker_data/mysql/conf:/etc/mysql -v /home/docker_data/mysql/logs:/var/log/mysql -v /home/docker_data/mysql/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=sxhdrJ%f405Q91T -d mysql:5.7

create database sjh default character set utf8mb4 collate utf8mb4_general_ci;

Leave a Reply

电子邮件地址不会被公开。 必填项已用*标注