[MySQL][ODBC 5.3(a) Driver]Can't connect to MySQL server - mysql

I have difficulty connecting to MySQL server from Tableau Server.
The error message is:
[MySQL][ODBC 5.3(a) Driver]
Can't connect to MySQL server on XYZ.
Unable to connect to the MySQL server "xyz".
Check that the server is running and that you have access privileges to the requested database
I have installed MySQL ODBC 5.3 Driver from tarball distribution in Ubuntu OS, and whitelisted the IP address of Tableau server in MySQL server.
What could be the possible causes for this? And is there any way that I check the ODBC connector was properly installed?
Any suggestion/comments are much appreciated!

Reasons, you could not connect could be different. But the error you've get asks you to check if server is running. It means, it could not find server.
The reasons, it could not find server, could be:
Server is down (Check its status by systemctl status mysql)
Server is not listening on some port your app connects to
Server is behind firewall (sudo ufw allow mysql command execution required to solve it in this case)
Your user does not have permissions to access that database, as it states in the error

Related

lost connection to mysql server at reading initial communication packet, system error:34 in sqlyog

I am using the server
AWS linux
ID_LIKE="centos rhel fedora"
DB
Server version: 10.4.17-MariaDB MariaDB Server
I want to use a sql tool which is sqlyog using putty with this sql server
But when i try to connect the server
it says lost connection to mysql server at reading initial communication packet, system error
sqlyog connection image
error message
server ip:port number(33)
server ip:3306(sql port) i've tried this too
Could anybody helps what's wrong ?

Drupal not connect to database in macOS Sierra?

Mysql is run in brew services
brew services list
But not connect in installing steps and show blow error!
Failed to connect to your database server. The server reports the following message: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client.
Is the database server running?
Does the database exist, and have you entered the correct database name?
Have you entered the correct username and password?
Have you entered the correct database hostname?
That error is usually caused by the version of MySQL you are running, older versions have a 16 character long password hash, but new(ish) versions of PHP will send a larger hash which will trigger that error.
Or, you could have new version of MySQL but my.cnf has 'old-passwords = 1'
If the latter isn't the case then upgrade to MySQL 5.x

ERROR 2003 (HY000): Can't connect to MySQL server on 'xx.xx.xx.xx.' (60)

ERROR 2003 (HY000): Can't connect to MySQL server on 'xx.xx.xx.xx.' (60)
I'm getting this error when trying to connect to this server remotely.
I recently hard rebooted my server and I'm guessing I haven't started something I need to.
I'm running Ubuntu 14.10
Mysql is up and running. All the sites that use this db are up and running. I can also log into the server and admin the db. But I prefer using a mysql client (navicat) for admin.
Prior to this reboot I was able to connect to this server remotely (navicat) for administration.
I have the appropriate entries in the mysql.user table (as I've said, I was able to connect remotely at one point)
my.cnf file:
#skip-external-locking
#bind-address = 0.0.0.0
Any clue as to what might be preventing connection
This error tells you that client can not reach the server, not that server is not operational. Maybe the address has changed (dhcp?), or port is blocked...

Connect to SQL server with custom port while executing installer

I have InstallShield 2013 basic MSI project. During installer execution I need to connect to MySQL Server which is running on 3310 port. Default port is 3306 and installation runs successfully, but when I try to connect to server with different port - installer cannot connect to MySQL server.
I tried to set custom port like described here
ServerName,3310
But it didn't work for me. I also tried to connect by IP of server and port delimited with ":" but it also had no effect.
When I try to connect to server by typing hostname I get this error: "Can't connect to MySQL server on 'hostname'"
When I try to connect to MySQL server by typing hostname,port I get the following error: "Unknown MySQL server host 'hostname,port'"
Can anyone tell me what I am doing wrong or what I need to do to connect to MySQL server with custom port?

mySQL command line works but ODBC and workbench do not

I am trying to test a connection to a mySQL database running on a remote linux server. I am running Windows 7 and have mySQL installed on my machine as well as the 32-bit ODBC driver. I can connect from the DOS command prompt with no problems. But I cannot connect using mySQL workbench or with ODBC (from MS Access).
In MySQL workbench my error is:
Your connection attempt failed for user 'username' from your host to server at 'x.x.x.x:x': Unknown MySQL server host 'x.x.x.x' (0)
In MS Acess (ODBC driver) my error is:
Connection faile:[HY000][MySQL][ODBC 5.2(w) Driver]Can't connect to MySQL server on 'x.x.x.x' (10061)
I've searched stackoverflow extensively and I found lots of people who can't get ANY connection to work. But I know I can log in from my computer. Could it be something other than ports?
Please make sure you are using correct ip address in MySQL workbench to connect to your mysql database