I restored a MSSQL backup to SQL Server Express in a Windows 7 virtual machine under Virtualbox. I am attempting to connect to this SQL Server instance from the host (Mac OS) using a user inside the imported database that has credentials to connect. The virtual machine is configured to use a Host-Only adapter. SQL Server express is running inside the VM at WIN7VM/SQLEXPRESS, port 1433.
I am able to connect to Apache in the VM on port 8080 from the Mac host without a problem. I can also telnet into the SQL server at port 1433 from the Mac host, using the host-only IP address (192.168.56.101).
What I am unable to do is connect to SQL server from Navicat in MacOS, or remotely using PHP. Here is what I have tried:
- Disabled Windows Firewall
- Configured SQL server port setting to use 1433
- Enabled SQL server authentication
- Enabled TCP/IP in SQL Server
- Enabled remote connections to SQL server
I am trying to connect with this info:
- Host/IP address: 192.168.56.101 OR 192.168.56.101\SQLEXPRESS (have tried both)
- Port: 1433
- Database: MyDatabase
- Authentication type: Basic
- Username: username
- Password: password
What am I missing here to be able to remotely connect without any issues? Thanks in advance!