Update 'README.md'

This commit is contained in:
Sarimoko 2021-07-08 04:45:21 +00:00
parent 76026f71f7
commit f960c38874
1 changed files with 25 additions and 2 deletions

View File

@ -1,3 +1,26 @@
# Gitea_template # MySQL
Heyo TEAMPLATE for each code languages own git repo. DISREGARD THIS REPO! Heyo is a Hello World for MySQL
***
MySQL . sql cvs
# IMPORTANT
The default install of MySQL on Ubuntu/Debain are NOT super secure... Yes the ip.port is blocked to local connections by default but if your SSH get pops any user with sudo can have root to your mysql as well... so to fix that run this command. You may want to lock mysql down AFTER you've configed mysql for your projects needs.
```
sudo mysql_sercure_installation
```
### Enable remote connections
Perfect for managing databases remotely, enable mysql on the firewall `ufw allow mysql` and then alter `sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf` and alter
```
. . .
lc-messages-dir = /usr/share/mysql
skip-external-locking
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address = 0.0.0.0
. . .
```