Setting up a mySQL server for remote access

Allow remote connections to mySQL server

sudo service mysql restart

Allow remote user access to mySQL database

mysql -uroot -p
CREATE USER 'user'@'%' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON *.* TO 'user'@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;
Back