在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
在安装MediaWiki时,试图将它绑定到mysql-server (安装的第二步),但得到了错误消息:
Cannot access the database: :real_connect(): (HY000/1045): Access denied for user 'root'@'localhost' (using password: YES). Check the host, username and password and try again. If using "localhost" as the database host, try