I have a database (MySql) on digital ocean for my application.
I would like to connect to the database via MySql Workbench. However, I struggle to understand how to do that.
I know I need to use an SSH connection, so on MySQLWorkbench I select the method 'standard TCP/IP over SSH'.
At this point though, I don't understand which are my SSH parameters.
On the DO database dashboard, I can select connection parameters, but none of them are excplicitly SSH parameters.
So I would appreciate some help to understand how to connect my DO database to MySql workbench.
Related
I have a flyway script that I run to migrate my db to Azure SQL db. Looks something like this:
flyway.url=jdbc:sqlserver://myazuresqlserver.database.windows.net/myazuresqldatabase;ssl=request;integratedSecurity=false;
flyway.user=myazuresqluser
flyway.password=myazuresqlpassword
...
And when I run it I get the following error:
Unable to obtain connection from database (jdbc:sqlserver://myazuresqlserver.database.windows.net/myazuresqldatabase;ssl=request;integratedSecurity=false;) for user 'myazuresqluser': The TCP/IP connection to the host dbserver-appinfra-test-000.database.windows.net/sqldb-appinfra-smartsuitemainoperational, port 1433 has failed. Error: "myazuresqlserver.database.windows.net/myazuresqldatabase. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".
So the thing is I already have one db that I migrated to another Azure SQL db. The script file for that one was almost idetical to the one I am using to migrate this database. I saw posts similar to mine, and, as you can see, I tried adding stuff like "ssl=request" to the connection string, which didn't work, and also setting setting the minimum required TLS version of the azure sql db to the lowest one.
So, because I followed the exact same steps for the other database and it the migration to Azure worked there, I looked closely into the connection strings of my azure databases. Both of the databases are on the same azure SQL server that I created, and both of them are in the same elastic pool that I created.
From my understanding the problem is that, looking at the connection strings, both of the database have this in their connection strings:
myazuresqlserver:1433
Also, important to mention - I did try to connect to this database from Azure Data Studio and SSMS. And it connects just fine
So I think they are both on the same port of the same server, that is the problem.
Could someone let me know how I could change the port of my Azure SQL database to something else in Azure? Or if it is unrelated please let me know what I can do. Help much appreciated!
The problem was in the line flyway.url=jdbc:sqlserver://myazuresqlserver.database.windows.net/myazuresqldatabase
This is what I had in my other flyway migration file (which worked perfectly) so I thought there shouldn't be any problem with this line. But I had to change it to
flyway.url=jdbc:sqlserver://myazuresqlserver.database.windows.net;database=myazuresqldatabase;
Hope this will help someone!
We have a wordpress site which we would like to create a linked server for to enable us to query the database in SSMS.
The webserver has a username,password and seperate IP which allows us to logon via ssh.
The database is a localhost database which has standard dbname/username/password information requirements.
We have tried using the SSMS create linked server wizard however we have not been able to connect even after much googling.
Any help would be appreciated.
Thanks
Will
Please refer below article to create mysql Linked server in MS SQL:
https://www.mssqltips.com/sqlservertip/4577/create-a-linked-server-to-mysql-from-sql-server/
I just heard about amazon rds and MySQL Workbench today from my partner for my group project, so I'm not very familiar with them. My partner has created a host account on amazon rds for our database, and I am suppose to help create table and make sql queries. However, I'm having no luck connecting to the database through MySQL workbench. The error message I received is "Unknown MySQL server host '*host_address*'. I have tried adding port 3306 to my firewall as suggested by a blogger, but that still doesn't work. There are some answers that say in order to connect to amazon rds, the user would need to add his/her IP address to the "DB Security Group" in amazon rds. So, does that mean my partner would need to add MY IP address to "DB Security Group" in the amazon rds account that my partner had created for the database? I been working on getting the connection for the last 6 hours, so I'm very greatful if someone could answer my question or point me in the right direction. Thank you for all your help.
The RDS Security Group for your RDS instance needs to be configured to allow access from your IP address. Once it is done, then you can verify that you have GOOD connectivity by running telnet <you_RDS_Instance_Name> 3306. Once you are able to connect fine, then I should be able to connect using MySQLWorkbecnh.
I have personally never used MySQL Workbench but I connect using MySQL cli to my RDS instance.
Here is the sample telnet command:
# telnet myrds.us-west-2.rds.amazonaws.com 3306
Trying 10.249.88.207...
Connected to myrds.us-west-2.rds.amazonaws.com.
Escape character is '^]'.
N
5.6.13-log▒)BM#5)n▒\eeM/B?Vr[P_mysql_native_password^]
telnet> q
Connection closed.
Read More about RDS Security Groups here.
This blog posting (http://thoughtsandideas.wordpress.com/2012/05/17/monitoring-and-managing-amazon-rds-databases-using-mysql-workbench/) describes how to use MySQL Workbench with Amazon RDS. It's for an older version of MySQL Workbench but still valid.
Hello guys,
i am unable to connect mysql workbench with windows azure sql database so i can manage the DB from PC without issues.
Is their a way to do it.. ? or is their an option or alternative to achieve my goal ?
Please help me regarding my query ! Thanks a lot :)
UPDATE:
Here is the error code i am getting:
[Window Title]
MySQL Workbench
[Main Instruction]
Cannot Connect to Database Server
[Content]
Your connection attempt failed for user 'username' from your host to server at xxxxxxxxx.database.windows.net:1433:
Lost connection to MySQL server at 'waiting for initial communication packet', system error: 10060
Please:
1 Check that mysql is running on server xxxxxx.database.windows.net
2 Check that mysql is running on port 1433 (note: 3306 is the default, but this can be changed)
3 Check the username has rights to connect to xxxxxx.database.windows.net from your address (mysql rights define what clients can connect to the server and from which machines)
4 Make sure you are both providing a password if needed and using the correct password for xxxxxxx.database.windows.net connecting from the host address you're connecting from
[Close]
Your server is xxxx.database.windows.net, so you are using SQL server, not MySQL server.
MySQL server format is: xxxx.mysql.database.azure.com.
You should use a MySQL server if you want to connect to MySQL Workbench.
I need to connect to an SQL server database on the network by ODBC or another way, from the server I can access the database through the ODBC, but from the PC in the network i cannot.
The purpose of that is to view a report for end users give me solution or ideas please?
There is a lot about your setup that we'd need to be able to help. Have you tried any of the steps at the link below besides testing a local connection?
http://social.technet.microsoft.com/wiki/contents/articles/2102.how-to-troubleshoot-connecting-to-the-sql-server-database-engine.aspx