I am trying to connect to a remote server database via navicat / sequel pro but having time outs.
I have mysql host, username, password, sql name and tried using ssl certificate but no luck. Not sure what I am missing.
What are some of the best process to test the connection via command line and how can I get this to work
Thanks
Related
Our company has a database server on AWS which other the employees can connect to it with MySQL, but when I tried, I got this error message, how can I solve it?
I tried to reconfigure MySQL server but it didn't work. also I double checked username, password, url and port.
To connect to an RDS MySQL instance from MySQL WOrkbench on your dev machine, check a few things.
First, get the full endpoint to the database from AWS Management console.
Ensure the database is publicly accessable.
Also, make sure that you set up your inbound rules correctly.
Once you do these things, you can use MySQL Workbench to connect.
In the hostname field, make sure you put in the hostname you copied from AWS Management console. Do not put in extra information such as:
dbc:mysql://forxxxxxxxxxxxxx.us-west-2.rds.amazonaws.com
make sure it is:
forxxxxxxxxxxxxx.us-west-2.rds.amazonaws.com
THen specify the user name and password and MySQL Workbench will connect:
it's my first time using DataGrip trying to connect to MySQL in a Ubuntu 18.04 server.
I've added a new user to MySQL. When I try to connect to MySQL using the command MySQL -u user -p works.
But on DataGrip, I've created an ssh tunnel and it's making the connection without any problems.
But when trying to connect to MySQL it gives this error The specified database user/password combination is rejected: [28000][1698] Access denied for user 'user'#'localhost'.
I am sure that the password is correct and in the log file it is showing that it's making the ssh connection, but it gives access denied when connecting to MySQL. If someone could help me, I appreciate it.
To connect to MySQL server using unix sockets follow an article in DataGrip documentation.
Connection via sockets available in DataGrip since version 2021.1.
is there any way to connect to a remote database by using SQLyog? I have the ip address, user name and password of the database. However, I have 'Error 2003 - Can't connect to MySQL server on '[myIpAddress]' (10035) whenever I test connection in SQLyog.
Need to use both ssh connection and mysql server connection for establishment of successful connection.
You need to add % wild card in your cpanel to enable mysql remote connection, if you cannot do this, you can use SSH tunnel to connect to database, Please check the following screenshot
I have launched an AWS EC2 Windows_Server-2016 instance.
Since this server is windows based,I can successfully connect to
it using remote desktop connection by entering the username,
password and a .ppk file.
I have installed MySQL server on the instance and created a user
that is allowed to login with any ip i.e by providing the '%' sign.
Here's what my AWS instance security group looks like :
I have tried connecting to the MySQL server using SQLYOG using 2
different scenarios :
Tried connecting by using the aws public ipv4 address as a host field and
using mysql username & password
Tried connecting by creating an SSH connection i.e providing server
username/password and .ppk file in SSH connection panel & then
providing mysql host/username and localhost in mysql connection
panel
None of the methods used allows me to connect.I try same procedure with a linux based server and can connect successfully. Please let me know where am I going wrong while using a windows based MySQL hosting.
MySQL has an extra level of IP protection for remote clients. You have to GRANT access to the remote ip(your house of office) to be able to connect. As root, you have to do :
GRANT ALL ON <db>.* TO '<username>'#'<remote ip>' IDENTIFIED BY '<remote_password>';
Where is the DB you are trying to connect to etc.
Windows Server 2008
Tableau Desktop 7.0
Local MySQL database using Xampp
When attempting to connect to a localhost MySQL database server using the native MySQL data connection in Tableau Desktop, I'm getting the following error:
"The connection to the data source might have been lost.
Communication with the Tableau Protocol Server process was lost.
Unable to connect to the server "localhost". Check that the server is running and that you have access privileges to the requested database.
Unable to connect to the server. Check that the server is running and that you have access privileges to the requested database."
When using "Other Databases (ODBC)" in Tableau, I am able to connect and return data. However, I would prefer to use the MySQL connection to avoid the limitations of the Other Databases connection.
I created a specific username in phpmyadmin as well as tried using the root username and password and the same error was returned. I created a user DSN in odbcad32.exe and attempted using multiple versions of the MySQL ODBC driver (3.5, 5.2.7, 5.3.4).
Does anyone have any ideas of what might be causing the error? Really appreciate any help.
A bit late in replying but....
MySQL user connections are based on a combination of username,password AND the host you are connecting from.
If you are connecting to MySQL on the same host as Tableau server, then the connecting host could be seen as '127.0.0.1', 'localhost', '::1' or even a hostname if MySQL is configured to resolve those.
The simple way to test would be to set the host field to '%' for the user you are trying to connect as. I would not recommend this for your root user entry or other accounts with significant privileges.