Localhost access via Internet

Hello

I have 2 local servers. Both are for my own use and I do not intent to host any website.

But here is what I want :

SERVER No. 1 is a DESKTOP Machine.
SERVER No. 2 is a Laptop.

On Server 1, i have mysql database that I want to use on Server 2.

Is there a way I can connect to the Database on Server No. 1 ?

I want some users to view a script on Server No. 1, how I can tell them to view the scripts ?

Both the computers are connected to internet.

regards
Zeeshan

Reference the other computer using its IP address or update the hosts file to associate the IP address with a domain name of your choice.

Thanks a lot Sir !

Will it be secure enough ?