$ SELECT User FROM mysql.user;
###Enable remote access to mysql For MySQL < 5.7
$ sudo nano /etc/mysql/my.cnf
For MySQL 5.7
$ sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf
In this file, locate "bind-address" directive, and change its value from 127.0.0.1 to 0.0.0.0
Save this file & restart mysql
sudo service mysql restart
###Create new mysql user & give full access
````$ mysql -u root -p``` #enter root password
$ CREATE USER 'demo'@'%' IDENTIFIED BY 'demo123';
$ GRANT ALL PRIVILEGES ON *.* TO 'demo'@'%' IDENTIFIED BY 'demo123';
$ FLUSH PRIVILEGES;