Quantcast
Channel: MySQL Forums - Connector/ODBC
Viewing all 1136 articles
Browse latest View live

Connecting from ASP.NET - ODBC or Connector/Net (no replies)

$
0
0
I'm creating an ASP.NET application that needs to connect to a MySQL database. Am I better off to use the ODBC driver or the Connector/Net driver?

Also, I notice that Connector/Net doesn't have an x64 version. Is there a reason for this? I'm using Windows 7 x64 as my development platform.


Cheers, Kris

MS server connect to MySQL (ODBC) (no replies)

$
0
0
I just installed SQL Server 2008 R2. I added mysql-connector-odbc-5.1.6-win32.msi to connect to MySQL database. It is not working properly . Please help – what driver can be used?

- (VStudio 2008) when try to add/remove tables for DATA Source Views , I am getting an error

ERROR [42000] [MySQL][ODBC 5.1 Driver][mysqld-5.1.32-community-log]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '[ fchclient]' at line 2 (myodbc5.dll)




- (VStudio 2008) when try to add ADO.NET with data access mode: table or view, I am getting an error :

TITLE: Microsoft Visual Studio
------------------------------

Error at Data Flow Task [ADO NET Source [1]]: The component "ADO NET Source" (1) was unable to retrieve column information for the SQL command. The following error occurred: ERROR [42000] [MySQL][ODBC 5.1 Driver][mysqld-5.1.32-community-log]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"art"' at line 1



------------------------------
ADDITIONAL INFORMATION:

Pipeline component has returned HRESULT error code 0xC02020FF from a method call. (Microsoft.SqlServer.DTSPipelineWrap)

------------------------------
BUTTONS:

OK
------------------------------


- (VStudio 2008) when try to add ADO.NET with data access mode: SQL command - is working.

Cannot Connect to MySQL Using ODBC (2 replies)

$
0
0
Hi There,

I'm using Connector/ODBC 3.51.27 on Windows 7 x64 but I can't seem to get it to connect to a MySQL server that I have running in a Ubuntu 9.1 virtual machine on my local workstation. I tried the following troubleshooting steps but still cannot seem to get it going. Can anyone suggest what I should try next? Thanks!

1. Tested access to database within the virtual machine by launching MySQL Administrator and logging in as the user in question.

2. Confirmed that the mysqld daemon was running by issuing "ps xa | grep mysqld"
root@ubuntu:/var/log/mysql# ps xa | grep mysqld
6203 ? S 0:00 /bin/sh /usr/bin/mysqld_safe
6336 ? Sl 0:05 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --user=mysql --log-error=/var/log/mysql/error.log --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock --port=3306
7203 pts/1 R+ 0:00 grep --color=auto mysqld

3. Confirmed that IPTables doesn't have any rules defined to block ports / connections.
root@ubuntu:/var/log/mysql# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

4. Disabled windows firewall

5. On Windows 7, the "Test" function with the Connector/ODBC interface returns the following error: Request returned SQL_ERROR. [MySQL][ODBC 3.51 Driver]Can't connect to MySQL server on '192.168.41.132' (10061)

6. On Windows 7, pinged IP address of virtual machine to confirm that it was reachable.
Pinging 192.168.41.132 with 32 bytes of data:
Reply from 192.168.41.132: bytes=32 time<1ms TTL=64
Reply from 192.168.41.132: bytes=32 time=1ms TTL=64
Reply from 192.168.41.132: bytes=32 time<1ms TTL=64
Reply from 192.168.41.132: bytes=32 time<1ms TTL=64

7. On Windows 7, attempted to telnet to port 3306 on target machine. Telnet could not connect.
telnet 192.168.41.132 3306
Connecting To 192.168.41.132...Could not open connection to the host, on port 3306: Connect failed

unexplained connection error (no replies)

$
0
0
Hi,
I'm connecting to my mysql server using ODBC, the database is shared throughout the company because it is used in an accounting program (simply accounting), each user has their own account user/pass to login to the database. I have developped a program that uses the accounting database and combines it with other information, my problem is that at least once a day I get this error when I run my program:
"(10061) ERROR [HY000] [MySQL][ODBC 3.51 Driver]Can't connect to MySQL server on"
and the error persists for at least 4 hours, for some reason it starts to work again later on in the day.
The user/pass is not at fault because like I said it works for the better part of the day, I'm not sure what else it could be...
I greatly appreciate any help you can offer me.
Thanks

Excel export to MySQL from given Table (no replies)

$
0
0
Hi everybody.

I need some help with MySQL and Excel. I have Joomla installed on our webserver and want so import links there. If you know Joomla you know what I'm talking about but it doesn't really matter if you don't

So, I have this MySQL table and it's connected via ODBC to an Excel sheet. It successfully read the table jos_weblinks from the database.

Now I'd like to just add more entries to this table and the write it back to the exact same table in my database on my MySQL server.

Is this somehow possible? How do I proceed?

Thanks for any help.

Set Names utf8 get error? (no replies)

$
0
0
Hi Experts,

Our application will create some tables using mysql 5.1 server. I use the mysql odbc 5.1.6 under windows and Unix. I have test under windows 64bit, LInux 64 and Solaris 64 bit. All exist the issues.



<[MySQL][ODBC 5.1 Driver][mysqld-5.1.47-community]SET NAMES not allowed by driver>. The SQL submitted is <SET NAMES 'utf8'>.>.

Our code will set the character before insert data or select.The issue didn't exist in the odbc 3.51.27.

After read some document, I use the similar one "SET CHARACTER SET utf8" The 2 are simplir but not complete same.

Any help are appreicate.

Thanks.
Allen

3251 Current Recordset does not support bookmarks (no replies)

$
0
0
Hello.

I receive a "3251 Current Recordset does not support bookmarks. This may be a limitation of the provider or of the selected cursor type" when using the MySQL Connector/ODBC 5.1 with a third party application. The error occurs during a search operation, otherwise the data displays fine.

I have fiddled with various configuration flags in the ODBC data source setup, but none seem to have any affect. The developers of the application are not interested in helping us and its absolutely critical that searching be possible.

Does anybody have any suggestions?

Thank you!

ODBC unter Linux (no replies)

$
0
0
Hallo!
Ich versuche unter SUSE Linux 10.x eine MySql 3.5x zum laufen zu bekommen...
Datenbank und Zugriffe aus Windows heraus sind ok!
Der ODBC Treiber unter Linux ist allerdings eine Katastrophe....
Nach der Installation fehlt mir eine grafische Oberfläche...
Ich habe schon folgende Pakete probiert:
MyODBC-3.51.11-3.i386.rpm
mysql-connector-odbc-3.51.27-0.i386.rpm
Liess sich auch installieren...
Aber eine Grafische Oberfläche fehlt da bei der "Driver" Angabe eine
"...S.so" angegeben werden muss die nicht in den Paketen enthalten ist.

Das gleiche habe ich mit einer MySQL 5.x..

Hat irgend jemand eine vernünftige Installation mit einer grafischen Oberfläche?

Bernd

ODBC Connection using MS Access 2007 fails (no replies)

$
0
0
When setting up my System DSN the instructions say that the Database drop down box will autofill with the available databases. That doesn't work. When I click the Test button I get the following error.

Connection Faile: [HY000] [MySQL][ODBC 5.1 Driver]Host 'coop-client100.dfacoop.com' is not allowed to connect to this MySQL server.

I'm wanting to connect Access as a front end to my database to write some reports.

sql error with myodbc 5.1.6 - Didn't expect '1' after Select column list (no replies)

$
0
0
Hi,
I got a problem with 5.1.6 that we didn't see with 3.51

the query (executed from MS Excel MS query):

SELECT
A.MATNR,
A.TYPE,
A.NAME,
J.DELAY,
J.ORDER_INVOICE,
J.ROW_NO,
J.UNITS,
A.PRIOR,
J.HOLD_STATUS,
J.CUSTOMERCODE,
J.COUNTRY,
A.ACQPLANT,
A.DAY_DSALDO_PLUS_AR,
J.CONFIRMED_DEL_DATE,
J.REQUESTED_DEL_DATE,
J.DELIVERY_BLOCK,
CASE WHEN 1=1 THEN D.MRP_CONT END AS TRP_MRP_CONT,
D2.MRP_CONT AS HUA_MRP_CONT

FROM ACTADW.JM2ORDSTOCKDAY J

INNER JOIN ACTADW.CB1ARTSTATDAY A ON
A.MATNR = J.PRODUCTNO
AND J.PLANT = '0101'

LEFT OUTER JOIN ACTADW.DB3ARTSTATDAY D ON
D.MATNR = J.PRODUCTNO
AND D.PLANT = '1100'

LEFT OUTER JOIN CPDDW.DB9ARTSTATDAY D2 ON
D2.MATNR = J.PRODUCTNO
AND D2.PLANT = '6100'

WHERE A.DAY_DSALDO_PLUS_AR < 0 AND J.HOLD_STATUS <> 'NO_INVOICE'
AND (J.DELAY < -10 AND J.PRIO = 1 OR J.DELAY < 8 AND J.PRIO <> 1)

Bombs out with error msg - Didn't expect '1' after Select column list

It is the case 1=1... that is the culprit, I'm told we use the case 1=1... to circumvent some kind of error


Now my problem is when I try to strip down the query to pinpoint the bug I get inconsistent results. The query above always fails. With stripped down variants the error either disapears or only shows randomly!

NOTA BENE! for version 3.51 this query always runs OK!

If I prefix the query with a comment like /* */ it runs OK in 5.1.6.

I write this in hope someone can tell me what's going on, or can guide me how to debug this so I can write a proper bug report or tell me what I do wrong.

character set error (no replies)

$
0
0
Installed ODBC driver on Win Server 2008. We plan to use the connection with FileMaker to import records from a remote mysql database.

When we test the connection we get an error referring to a problem with the character set. I recall it said something about not specifying a character set. (Apologize for not having the specific error language; the machine is remote and I don;t have the current RDC credentials. I'll get the exactly language and post it as a follow up.)

I don't recall anything in the install process that pertained to character sets.

Any suggestions

Trouble make a connection from Oracle(HP-UX 11.11) to MySQL (no replies)

$
0
0
Hello, I need to make a connection from Oracle on HP-UX (PA-RISC 11.11) to MySQL database and hadn't had any luck. I tried Oracle support and was told to contact MySQL! Here is what I have done:
(1): Downloaded MySQL driver 5.1.6 (32 bit) for HP-UX(11.11) from mysql.org and untar to the server; There are 2 libriaries files under lib directory" libmyodbc5.sl" and "libmyodbc3S.sl".
(2): Downloaded UnixOBDC driver manager 2.3.0 from unixODBC.org and did 'configure/'make'/'make install' per instruction;
(3): Edit ODBC.ini and tried 'libmyodbc5.sl' and also 'libmyodbc3S.sl' in 'Driver = ' line and neither of them worked. When I put 'libmyodbc5.sl'in the ODBC.ini, 'isql' test gave me '[08S01][unixODBC][MySQL][ODBC 5.1 Driver]Can't connect to local MySQL server through socket'. When I point driver to 'libmyodbc3S.sl', I got '[IM004][unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_HENV failed'.

What's the difference between these 2 mysql libraries? Which one should I use?Most important, how to make the connection work?? Please help! Thank you!

How to connect to mySQL by ODB5.1 (no replies)

$
0
0
after I install ODBC 5.1 and goto Start/ ControlPanel/ Admin tools/ Data Sources (ODBC) to configure User DSN. Although I types exactly infomations about mySQL. when I click on Test button. A error appear and I can't connect to mySQL server.

http://smsvietnam.net/con.JPG

MsgBox Error show: http://smsvietnam.net/ero.JPG

Please somone can help me to fix this erorr. Thank so much!

ODBC cannot returs more than 1 field?? (no replies)

$
0
0
hello.... i want to ask, is on ODBC couldn't return resultset more than 2 field? because i already used in mysql GUI and there 's no problem, but when i used in ODBC it's error, the error message = Warning: odbc_exec() [function.odbc-exec]: SQL error: [Microsoft][ODBC Microsoft Access Driver] You have written a subquery that can return more than one field without using the EXISTS reserved word in the main query's FROM clause. Revise the SELECT statement of the subquery to request only one field., SQL state S1000 in SQLExecDirect ,
btw, my query is =
SELECT DISTINCT USERINFO.USERID from CHECKINOUT, USERINFO
where (USERINFO.USERID , CHECKINOUT.CHECKTIME)
not in
(select CHECKINOUT.USERID,CHECKTIME from CHECKINOUT, USERINFO where CHECKINOUT.USERID=USERINFO.USERID ) AND `CHECKTIME`='16/11/2010'";

anybody can help me..?? thnx before

Do you know about character set bug? (no replies)

$
0
0
Hello.Thanks for reading!

I have a trouble with changing character code.
Could anyone please give me an advise ?
I'm really in trouble.

ENVIRONMENT:
MYSQL SERVER : linux (EUC)
CLIENT(ODBC) : Windows (CP932)

I'm making a program in VC++.

I can read 2-byte characters on linux (EUC).
But I cannot read them in Windows peer ODBC Driver (MYSQL/ODBC v5.1)
although I setted 'SET CHARACTER SET CP932' in initial statement.

with the same setting in ODBC Driver (MYSQL/ODBC v3.51), I can read 2-byte characters .

Also, I can read them using the ODBC Driver (MYSQL/ODBC v5.1)
if I execute a sql 'SET CHARACTER SET CP932' before getting data.
(I have to use SQL_BINARY type to show 2-byte chars, though database type is varchar. This is another strange thing.)

But I don't want to execute 'SET CHARACTER SET CP932' everytime.

Is this a bug or something ? already reported ?
I tried to find bug reports but I couldn't find any.

Or let me know anyone has a same trouble.

Thank you!

Can not "OPEN" from Remote (no replies)

$
0
0
I am trying to connect to MySQL 5.1 server from VB6 program on REMOTE Client through ODBC as follows.

Public adcnn As ADODB.Connection

Public Function OpenDatabase(server as string, dbname As String, user As String, pass As String)
adcnn.ConnectionString = "DRIVER={MySQL ODBC 5.1 Driver}; " _
& "SERVER=" & server & "; " _
& "DATABASE=" & dbname & "; " _
& "UID=" & user & "; " _
& "PWD=" & pass & "; " _
& "OPTION=-1"

adcnn.Open ' <-- Error point
End Function

On error point it says...

[MySQL][ODBC 5.1 Driver]Optional feature not supported


On localhost machine no problem.


What can I do?


Thanks for your advice in advance.

Kotaro

Client does not support authentication protocol (no replies)

$
0
0
I received the following error attempting to open MySql db from VB.
(using 5.1.44 server from 4.0.21 client)

[MySQL][ODBC 3.51 Driver]Client does not support authentication protocol requested by server; consider upgrading MySQL client

I then used following suggestion on the server pc to fix the problem.

SET password for 'user'@'localhost'=OLD_PASSWORD('newpassword');
FLUSH PRIVILEGES;

The VB program will not recognize the new password but still works with the
old password except the ODBC error still exists !

Do i need to do anything on the client side? I have many users still on the
old version (4.0) And why does the client VB still work with the old pswd?

thanks

Client does not support authentication protocol (-1 replies)

Connecting to MySQL from z/OS (no replies)

$
0
0
Is it possible to connect to a MySQL database from z/OS?

Automated login from MS Access to MySQL (no replies)

$
0
0
Hi,

I am new to MySQL and I am still using MS Access. I recently created an ODBC connection so I could work on MS Access front-end and make changes to the data in MySQL Back-end.

However, when I do a change, there is always that prompt asking for a password.
Is there a VBA code/module I can copy to bypass that?

something like a private sub() that I can run, and don't have to manually enter password and username?
Viewing all 1136 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>