RUN yum -y install
http://dev.mysql.com/get/mysql57-community-release-el6-11.noarch.rpmRUN yum install -y mysql-community-server
RUN /etc/init.d/mysqld start \
&& password=$(cat /var/log/mysqld.log | grep "A temporary password is generated for" | tail -1 | sed -n 's/.*root@localhost: //p') \
&& newPassword="Phpdish-2017" \
&& mysql -uroot -p$password -Bse "ALTER USER 'root'@'localhost' IDENTIFIED BY '$newPassword';" --connect-expired-password \
&& mysql -pPhpdish-2017 -e"create database symfony default character set utf8mb4 collate utf8mb4_unicode_ci;" \
&& /etc/init.d/mysqld stop