Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ sudo ufw status
Status: active
To Action From
-- ------ ----
22 LIMIT Anywhere
443 ALLOW Anywhere
80 ALLOW Anywhere
22 (v6) LIMIT Anywhere (v6)
443 (v6) ALLOW Anywhere (v6)
80 (v6) ALLOW Anywhere (v6)
sudo ufw allow 3306
sudo service ufw restart
sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf
#
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
bind-address = 127.0.0.1
#
# 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
CREATE USER 'kullanici_adi'@'%';
GRANT ALL PRIVILEGES ON *.* TO 'kullanici_adi'@'%' IDENTIFIED BY 'kullanici_sifre';
sudo service mysql restart
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.