Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/markpurser/vagrant-mysql-minimal

A quick way to run up MySQL 5.7 on minimal CentOS7
https://github.com/markpurser/vagrant-mysql-minimal

centos7 laravel54 mysql vagrant

Last synced: about 2 months ago
JSON representation

A quick way to run up MySQL 5.7 on minimal CentOS7

Awesome Lists containing this project

README

        

# vagrant-mysql-minimal

A quick way to run up MySQL 5.7 with minimal CentOS7

## Details

Sets up 64-bit CentOS 7.0 base box, minimal install. Uses a bash script to provision MySQL 5.7.18.

Tested using Vagrant 1.8.7 on virtualbox 5.1.22

Side note: Running MySQL 5.7.7 or higher is good for using Laravel 5.4 to avoid the default string length issue here https://laravel.com/docs/master/migrations#creating-indexes

## Installation

```
vagrant box add minimal/centos7
vagrant up
```

## Database Setup

SSH into the VM

```
vagrant ssh
```

then

```
grep 'temporary password' /var/log/mysqld.log
mysql_secure_installation
mysql -u root -p
create user 'myuser'@'%' identified by 'mypassword';
grant privileges on *.* to 'myuser'@'%' with grant option;
flush privileges;
```

You can now access the database on port 33060 with username 'myuser' and password 'mypassword'

Note that MySQL 5.7 enforces a strict password policy by default