Skip to content

Instantly share code, notes, and snippets.

@ctkjose
Created December 15, 2018 05:43
Show Gist options
  • Save ctkjose/0e715f13db964c9ccf410458677ded77 to your computer and use it in GitHub Desktop.
Save ctkjose/0e715f13db964c9ccf410458677ded77 to your computer and use it in GitHub Desktop.
Setup Ubunto Server

MYSQL

mysql -u root -p 

mysql> GRANT ALL PRIVILEGES ON *.* TO 'ctk'@'%' IDENTIFIED BY 'password';
mysql> flush privileges;

Enable access from an external IP By default mysql is only listening from 127.0.0.1.

sudo nano -w /etc/mysql/mysql.conf.d/mysqld.cnf 

Change to

[mysqld]
bind-address = 0.0.0.0

Restart

sudo systemctl restart mysql
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment