Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/syslog777/mysql-server-setup
https://github.com/syslog777/mysql-server-setup
bash linux sql ubuntu1604
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/syslog777/mysql-server-setup
- Owner: Syslog777
- License: mit
- Created: 2017-11-23T01:13:27.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-02-09T20:12:31.000Z (almost 7 years ago)
- Last Synced: 2024-10-03T18:46:03.615Z (about 1 month ago)
- Topics: bash, linux, sql, ubuntu1604
- Language: Shell
- Size: 12.7 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# mysql-server-setup
Usage:
```bash
#Give perms to the current user to execute script
chmod u+x ./mysql-server-setup#Run the script (must have account password)
./mysql-server-setup
```
Original tutorial: https://www.linode.com/docs/databases/mysql/install-mysql-on-ubuntu-14-04
Tested on Ubuntu 16.04
Raw code:
```bash
#!/bin/bash
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install mysql-server
sudo mysql_secure_installation
mysql -u root -p
sudo service mysql stop
sudo dpkg-reconfigure mysql-server
sudo service mysql start
sudo apt-get install mysqltuner
mysqltuner
```