Ubuntu or Debian, in content to MariaDB database.

nano /etc/mysql/mariadb.conf.d/50-server.cnf

For other OS need to check right path location.

Once you edit file, you can search

bind-address =

and replace it with

bind-address =

Once change done, restart mysql

service mysql restart 

As restart completed, you can follow below statement to create new remote user.

Login to mysql via mysql  command than fire below SQL statements

CREATE USER ‘dmo’@’%’ IDENTIFIED BY ‘mypass’;

after create new user, grand permission

GRANT ALL ON *.* TO ‘dmo’@’%’;

Once above command fired, below command very necessary to reflect changes.

flush privileges;

Once above flush done, its all affect in system wide and new remote user able to login.