在Docker容器中运行MySQL/MariaDB:
docker run -p 3306:3306 --name $(DATABASE_NAME) -v /tmp/mysql:/var/lib/mysqlMYSQL_DATABASE=$(DATABASE_NAME) -e MYSQL_USER=$(DATABASE_USER) -e MYSQL_ROOT_PASSWORD=$(DATABASE_PASSWORD) -d mariadbto MySQL server at 'reading
old="xxxx"mysqldump $old -u root -p$mysqlword | mysql $new -u root -p$mysqlword mysql -u root -pwwww
Welcome to the MariaDB monitor.Your MariaDB connection id