I have set up a webserver (OS Raspbian, Apache, MariaDB) and now I want to read the database into Qlik Sense (on my desktop PC).
If I want to create a new ODBC connection in Windows, I get the following error message:
"[ma-3.1.4] Can't connect to MySQL server on 'localhost' (10061)"
I am using the "MariaDB ODBC 3.1 Driver". The specified user has all rights.
Do you have any idea where the error is? I am doing this for the first time. Please let me know if you are missing crucial information.
Greetings
Related
I am trying to set up a user DSN on Windows 2012 server. Oracle Client, both 32 and 64 bit are installed as well as ODBC. They are installed on C:\Oracle\product\11.2.0\client_1 and C:\Oracle\product\11.2.0\client_2 respectively. I used ODBC Data Source Administrator (32 bit) to set up the DSN and used information as it exists in tnsname.ora file. However, when I test the connection I keep getting:
"Unable to connect
SQLState=08004
[Oracle][ODBC][Ora]ORA-12154: could not resolve the connect identifier specified"
I searched and they all point to an issue with tnsnames.ora file but all the info I entered when creating DSN is correct, Network Services and IIS_USRS have access to the folder containing the file, I put the service name in quotes as some suggested but just can't shake off the error.
Any ideas on what else I can check?
I am getting error
ERROR [08S01] [MySQL][ODBC 5.1 Driver]Lost connection to MySQL server at 'waiting for initial communication packet', system error: 10060.
While using connection string
"DRIVER={mysql odbc 5.1 Driver};SERVER=204.11.58.166;DATABASE=dbname;UID=uid;PASSWORD=uid;OPTION=3;"
So, please guide me how to solve it.
Thanks
Ravi
What MySQL version are you using ? ( To see the version you can use 'SELECT VERSION();' )
Is MySQL 64b or 32b ?
What is your OS ?
Try to update to ODBC 5.2, see on dev.mysql.com -> download -> conectors
Roberto Novakosky
Well I already have this in 3 situations
1) I was using old version of connection on Delphi, and with MySQL installed on Linux. I did update of my components and the connection was OK. (similar message)
2) In a remote application I used 'localhost' inside string connection, when must be the IP of server, on server works OK, but when I use from remote host this problem occurs. resolved with the real IP. (similar message)
3) In my LAN, the port 3306 was redirected to other machine, so when I tried to connect an outside server, the response connection was wrong. the message was exactly as yours. As, we can't to change the port of MySQL of outside server (that was 3306), I changed the port of my local MySQL server to 3307 and removed from my router the redirect over 3306. It was with conflict, see: I need to use 3306 from outside and it need to respond to my machine, the router hindered the connection ...
Good luck
Please refer this thread
and this site for detailed explanation
I'm trying to setup a ODBC connection from a Windows XP/Pro (32bit) client to a MySQL database running on a CentOS 6.3 64bit server.
Both systems are on the same subnet.
I have Samba installed and working on the CentOS server.
I can map the server directory that contains the database tables on the XP system.
The DB server is fully updated on all packages.
I can login to the server with myid:mypw via ssh, a standard user. Same user can make SELECTS from the database.
Can not ssh to root on CentOS server, root is excluded in the ssh config.
When I try to run the ODBC Data Source Administrator on the XP client, on the Create a New
Data Source to SQL Server screen, I select using a login ID entered by the user. I'm
entering the same ID:pw I use to ssh into the server. At that point I get an error,
SQLState = '08001';
SQL Server error: 17;
SQL Server does not exist or access denied"
The Server name I'm entering for "Which SQL Server do you want to connect to?", I've entered the host name of the CentOS that is defined in the XP's /etc/host file. It does appear in the drop down list for that question.
I have installed unixODBC*, mysql-connector-odbc & libtool* packages via yum.
On the server, odbc -q -d returns: [MySQL]
odbcinst.ini includes lines for Driver | Setup | Driver64 | Setup64. The 64 versions do point to /usr/lib64.....
odbc.ini includes: [MyDSN} & Driver = MySQL ODBC 5.1 Driver
Any idea what I've missed so far? Am I running into 32/64 bit system issues? And if so how do I solve this, I will have both 32 & 64 bit users most of them on Windows 7/Pro 64 bit, a few stuck on XP/Pro 32 bit.
I'm a bit lost in this task, so some detailed instructions would be great.
Thanks in advance..
Assuming you have not made a mistake and you really want to access a MySQL database on a remote Centos based system from Windows using ODBC you'll need to install the MySQL ODBC Driver on your Windows machine. You cannot use the MS SQL Server driver to access MySQL. Once you've done that you create a MySQL ODBC data source (although you can use DSNless connections) and not a SQL Server DSN.
2 and 3 are irrelevant as the MySQL ODBC driver is capable of talking directly to your MySQL Database server over the network assuming your server is set up to listen for external connections.
5 is also irrelevant as you'll need a MySQL database username and password and you database needs to allow connections from your windows machine.
(9-12) You also do not need to install unixODBC of the MySQL connector on your Centos box unless you want to access that same MySQL database with an application running on Centos that uses ODBC. 10 just tells you you've got an entry in your odbcinst.ini file for the MySQL ODBC driver which you don't need. 11 is the same info. 12 is a MySQL ODBC DSN which you also don't need.
In one of the Lotus Notes application which requires connection with external SQL DB, we have one user who is getting error message prompt because ODBC driver is not able to connect.
I did following checks:
1. User had permissions to EDIT registry HKLM-Software-ODBC
2. User is able to access the db server (i pinged server IP from user's machine)
3. Made sure that user had admin acces to computer.
This is how code works. The code first runs a VBscript which sets registry variables, then uses LotusScript with NSLXODBC to connect to the DB (ConnectTo method).
The only difference I found between users not having issue and those reporting issue is that USER REPORTING ISSUE had new laptop and it had windows 7 OS.
Lotus Notes Version: 6.5
The problem is likely in the ODBC setup then. The registry changes are supposed to set up the ODBC connection but I'd bet the same code doesn't work for Windows 7. Try manually creating the ODBC connection from that user's laptop.
I have installed oracle express 10 on my localmachine in which all oracle client tools were already installed to connect to a remote oracle server before.After replicating the databses from remote server in the local when I try to connect to the local version or remote version from asp.net it throws an exception telling connection couldnot open.I can use the same connection parameters and connect in SQLdeveloper/toad.When I uninstall oracle express I can connect to remote server again.I am running windows xp 64 bit version.Can someone help me with this?
..installing oracleXE after installing oracle client was the problem.The real issue was in the order of the paths variable