I have found these instructions on how to make usernames and passwords for a MySQL database. However in the instructions it says that I make the user with the following:
mysql> GRANT ALL ON demo.* TO user1@localhost IDENTIFIED BY 'mypassword';
However what how do I allow the user to connect from somewhere that isn't a local host. And in that case does that person's account need to be user1 on this other machine?
Essentially I want to create a username and pass for the database that anyone can use from anywhere