How to Connect to a remote MySQL Database Posted on October 10, 2019 by admin The -h option allows you to connect to a remote host.-h, –host=name Connect to host. mysql -u root -p -h hostname