First make sure that computerx can see computery on your network.
Set up your connect script as normal but use computery.mydomain.com (or whatever the full network name of your computer is) instead of localhost.
In the mysql database users setup your user id for the access from computery with a listing for userx@localhost AND for userx@% or userx@computery.
HTH