MySQL 5.7 using vagrant

Hi there.
Today I will write a quick post to show how to easily configure a brand new mysql 5.7 machine using vagrant.
Vagrant is a command line utility that provides tools to manage virtual machines for different virtualization technologies, for example virtualbox. You can see more details about it here. Navigate to installation if you want to know how to install it.

I’ve created a vagrant script to boot a centos 7 + mysql 5.7 machine. You can find it on github. See how you can get it:

git clone
cd mysql-vagrant
vagrant up
vagrant ssh mysql57

If you look the files you have cloned from git, there is a file called This file will configure mysql yum repository, install mysql 5.7 and reset the password for the root user.

If you have any questions, please comment.

Leave a Reply

Your email address will not be published. Required fields are marked *