Hi Mikelee,
If you wish to run your PHP application to connect to your MySQL from another remote server, you need to add in the user db permission and users in MySQL server first, and flush_privelliges. Then you will able access from certain IP with the username and password.
By default, the MySQL only accessable to the localhost.
Hope it help.
Thanks
Louis