Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/markpurser/vagrant-mysql-minimal
- Owner: markpurser
- Created: 2017-05-18T11:12:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-18T12:10:37.000Z (over 7 years ago)
- Last Synced: 2024-10-11T10:42:10.516Z (3 months ago)
- Topics: centos7, laravel54, mysql, vagrant
- Language: Shell
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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