sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf
...
bind-address = 0.0.0.0
...
sudo systemctl restart mysql
mysql -u root -p
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION;
FLUSH PRIVILEGES;

An eastern european proverb says that in order to give a deeper meaning to one’s life, in the course of our life it is necessary to build a house, give birth to a child and plant a tree.
Feel free to contact me contact me.