SQL Server Express 2008 Configure for Remote Access via url - sql-server-2008

I have installed SQL Server 2008 Express Edition on my Server.
I am hosting my applications on the same server.
I can remote in to my server with a ip xx.xxx.xxx.xx username and password
I can run SSMS on my server and connect to database as
server: (local)\SQLExpress
authentication: SQLServer
user: username
pwd: Password
I want to be able to access this SQL Server instance remotely, what I have done is:
Enabled SQL Browser
Enabled TCP/IP
Inbound Firewall enable fro SQLservr.exe
Enabled Firewall for port 1433
From my local pc SSMS, when I try to connect to:
server : xx.xxx.xxx.xx\SQLExpress
Authentication : SQL Server
Username: user
password: pwd
I get network error, to check if server name is correct.
Can anyone tell me how to fix this problem?
Also I want to access my server with sql.mydomain.com not with IP or machine name. How can I get this done?
update:
After doing all above I missed to restart SQL Server Service
Now I am able to access my SQL Server remotely
with this url
xx.xxx.xxx.xx\SQLExpress
How can I create a alias like
sql.mydomain.com
where should i do that?

Please check in the "SQL Server Configuration Manager" that the TCP/IP protocol is enabled.

Got this worked.
On Domain control point www.mydomain.com A record to ip xx.xxx.xxx.xx.
On my server install SQL Server with default instance (MSSQLServer)
Enable TCP/IP on Client Protocols
Add Port 1433 incoming Firewall
Add Inbound Firewall for SQLservr.exe
That's it Now I am able to connect to my sql server remotely with mydomain.com, username and password

Related

cannot connect remotely with online database on localhost phpmyadmin

i have configured the phpmyadmin's config.inc.php file and a drop down menu has appeared accordingly in localhost/phpmyadmin to select the server. But when i try to connect to the server it says:
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
i have added my ip address to the online host server in the cpanel and have access to the remote sql connection.
please help.
Most hosts block incoming connections to the MySQL server as a security measure. You'll have to ask your host about unblocking port 3306 and how to access your MySQL directly -- or run an API on your web host, which would have access to the MySQL server due to being on the same network, and access the database through that. For phpMyAdmin specifically, just install it on your web host instead of your local machine, then access it through the internet rather than localhost.

MYSQL Workbech connection to local network database?

I'm trying to setup a new connection in MySQL Workbench to MySQL server on my other network computer named say: SERVER
Hostname: SERVER
Port:3306
Username and password I leave blank.
I'm getting "unknown server host"
SERVER has dynamic IP.
How do I provide the correct Hostname?
I don't think that you can connect to a computer of your network with its name only in MySQL Workbench.
So, if you can't allocate a fixed IP with DHCP to your computer running MySQL maybe you could use port forwarding in your router config (localhost:port -> computer2_ip:mysql_port) so you will be able to connect to localhost:port in MySQL Workbench. You could also create a tunnel between the two computer but I think this is rather a question for ServerFault.

Allow Remote Mysql To Centos Server

I have a development server in my office, which runs through my domain server with routing.
Everything is fine, however i cannot connect to the development server mysql remotely.
The dev server is with ip 192.168.1.3 on the subnet in the office. I can ssh to it, reach apache and ftp. But mysql says: Host "192.168.1.2" is not allowed to connect to this MySql Server"
any help is appreciated. the ports are open on the firewall.

How to remotely connect to MySQL on Windows Server 2012 R2

I have installed MySQL on a Windows Server 2012 R2 using Microsoft's Web Platform installer.
What I'm having a problem with is how to remotely connect to it? I'm able to launch the MySQL command prompt on the server and can see that it is running on port 3306, uses root as the username, the correct password and I can see the hostname (the name of the server).
I have enabled an inbound rule in Windows Firewall for port 3306 but is there anything else I need to do? I'm trying to connect using MySQL Workbench on my PC but not getting very far.
Thanks,
Steven.
Most likely you need to correct your my.ini and either comment the bind-address variable, which is set to 127.0.0.1 by default, or set it to your server's IP address value.
For locations, please refer to: MySQL my.ini location

Remote mysql database connection

if php uses the following server name mysqlxx.90 and the username ouxxxxxxch to connect successfully to the local database and the server IP is 1x.xx.xx.x8, what would I usually enter as the server name to connect remotely.
Confusing question... I can connect properly to the database through ssh and command line, could it be that I'm just being blocked remotely, and how would I prove this??
Just use the server IP to connect. Obviously, port 3306 will need to be open to connections and your MySQL username and password must be accepted by the server.
You can try
telnet <serverip> 3306
on the command line to see if you can connect to the server on port 3306.