FROM centos:centos6
MAINTAINER "gmaid@gmail.com"
RUN yum install -y mysql-server mysql
RUN /etc/init.d/mysqld start &&\
mysql -e"grant all privileges on *.* to 'root'@'%' identified by 'mima';"&&\
mysql -e"grant all privileges on *.* to 'root'@'localhost' identified by '123#456';"&&\
mysql -u root -p123#456-e"show databases;"
EXPOSE 3306
CMD ["/usr/bin/mysqld_safe"]
FROM centos:centos6 MAINTAINER "becivells@gmail.com" RUN yum install -y mysql-server mysql RUN /etc/init.d/mysqld start &&\ mysql -e "grant all privileges on *.* to 'roo