Skip to content

Instantly share code, notes, and snippets.

@darkamenosa
Last active June 8, 2018 08:31
Show Gist options
  • Save darkamenosa/2de5b48bde14bcde05fba839cc8da233 to your computer and use it in GitHub Desktop.
Save darkamenosa/2de5b48bde14bcde05fba839cc8da233 to your computer and use it in GitHub Desktop.
Allow remote to access mysql on root

Tutorial

  • Step 1: Run the script
 GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
 FLUSH PRIVILEGES;

Note: You have to change password to your password

  • Step 2: Edit /etc/mysql/mysql.conf.d/mysqld.cnf

Change line:

bind-address          = 127.0.0.1

to:

# bind-address          = 127.0.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment