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

Authorware Application (no replies)

$
0
0
Hi all

Hoping to get some assistance with an issue that I am experiencing.

We have a network application used by staff to access learning materials.

The application calls an MS Database which lives in the same network location as the application.


On Windows XP x86, This is the default OS where the application was deployed.
- The application launches without any hangs
- Old and new created users are able to logon
No issues on Windows XP.

On Windows 7 x86 & 64 and Windows 8.1, x64 (upgraded OS)

- Application hangs at the logon screen IF AN EXISTING USER tries to logon.
- Application also, at some times manages to logon with an existing user.
- Application logs on successfully if I choose to create a new user.


What is causing the application to hang when an existing user tries to logon?
Why does it work at times, and hangs most of the times?
What can I do to troubleshoot this issue?


Happy to provide any information as required

Regards,
Wag

Connect to remote WAMP server (no replies)

$
0
0
How do you connect to a MySQL db on a remotely hosted wamp server from MySQL Workbench

Problem using Connector/ODBC on Fedora 21 (no replies)

$
0
0
Hi,

For starters, I am using Fedora 21 32-bit and these are the package names and version numbers on this platform:

unixODBC 2.3.2
unixODBC-devel 2.3.2
unixODBC-gui-qt 0.10.x
community-mysql 5.6.23
community-mysql-server 5.6.23
mysql-connector-odbc 5.3.2

This is the contents of my /etc/odbc.ini file:

[odbctest]
Description=MySQL
Driver=MySQL
Server=
Database=odbctest
Port=
Socket=
Option=
Stmt=
Charset=utf8

I have setup my test database using the "MySQL" command line tool. My C++ test program is connecting to a MySQL server using Connector/ODBC. When my test program calls SQLConnect it crashes with the following snippet of a backtrace:

/lib/libc.so.6(+0x6ce09)[0xb72d6e09]
/lib/libc.so.6(+0x74406)[0xb72de406]
/lib/libc.so.6(cfree+0x56)[0xb72e2676]
/usr/lib/mysql/libmysqlclient.so.18(my_free+0x63)[0xb6ef2f43]
/usr/lib/libmyodbc5.so(MySQLGetPrivateProfileStringW+0x179)[0xb7239ca9]
/usr/lib/libmyodbc5.so(ds_lookup+0x78)[0xb72381a8]
/usr/lib/libmyodbc5.so(MySQLConnect+0xde)[0xb72147ce]
/usr/lib/libmyodbc5.so(SQLConnectW+0x52)[0xb7231ec2]
/lib/libodbc.so.2(SQLConnect+0xd10)[0xb75a86a0]

I have exactly the same configuration on Fedora 20 32/64-bit and its happily working on these platforms. The only difference I can see is the package version numbers which are:

unixODBC 2.3.2
unixODBC-devel 2.3.2
unixODBC-gui-qt 0.8.x
community-mysql 5.5.42
community-mysql-server 5.5.42
mysql-connector-odbc 5.2.5

I noticed that in either platform /usr/lib/libmyodbc5.so is a link to /usr/lib/libmyodbc5w.so.

Note that my application is ANSI, i.e. it uses SQLCHAR* when using ODBC calls.

What am I doing wrong on my Fedora 21 platform? What changes do I need to make to get this to work?

Any help will be much appreciated. Thanks in advance.

Only short sql replies works from Japan in win 7 (Connector problem?) (no replies)

$
0
0
I have a database application that stopped working when we upgraded from xp to win7. But the problem is only visible when we run the program in Japan, with long distance to db!

The strange thing is that queries with short answers work, I play with "SELECT * FROM shoeType LIMIT 1". No problem. LIMIT 10 is ok. LIMIT 100 hangs the mySQL execution forever. Limit is around 1Kb I think (Program is written in Labview, using ODBC connector in windows).

We just shipped a PC (win7) that was working perfectly here in Sweden to Japan, and the problem appears there, just as in last PC with win7.

Working Setup of Windows XP:
win XP
ODBC connector 5.1.9
Network card driver Intel PRO/100 VE 06/12/2007 ver 8.0.47.0


Not working Setup of Windows 7:
Win 7 embedded
ODBC connector 5.2.3
Network card driver Intel PRO/100 VE 16/11/2007 ver 8.0.47.1

I have just started to test different versions of odbc connector. So far I installed 5.1.9 without any inprovement.

Changes to using Parameter in ODBC (no replies)

$
0
0
Hi,

I updated from ODBC Connector 5.2.4 to the latest 5.3.4 and now none of my parametised SQL works;

For example this works fine under 5.2.4 but fails on any connector version after 5.2.4 ;

Public Function Update(WhereClause As String) As Integer
Dim Ins As String = "UPDATE " + Table + " SET "
Dim i As Integer
Dim dbState As Integer

dbState = dbConnect.State
'
' Build update string
'
For i = 0 To Fields.GetUpperBound(0)
If Fields(i).Auto = False And Fields(i).Updated = True Then
Ins += Fields(i).FieldName + "=?,"
End If
Next

Ins = Ins.Substring(0, Ins.Length - 1) + " " + WhereClause

dbCommand.CommandText = Ins
'
' Add parameter values
'
For i = 0 To Fields.GetUpperBound(0)
If Fields(i).Auto = False And Fields(i).Updated = True Then
dbCommand.Parameters.AddWithValue("@" + Fields(i).FieldName, Fields(i).Value)
End If
Next
'
' Execute
'
If dbConnect.State = ConnectionState.Closed Then
dbConnect.Open()
End If

Update = dbCommand.ExecuteNonQuery

If dbState = ConnectionState.Closed Then
dbConnect.Close()
End If

Me.Reset()
End Function

Has the parameter changed, the string built looks like "UPDATE <table> SET <field1>=?,<field2>=?" etc where fieldx is an actual field name.

Has something changed?

MySQL Upgraded now cannot connect (no replies)

$
0
0
We are using an old Access 97 App on Win XP laptop (cannot change code or update ODBC driver). Using ODBC 3.5.1 and was MySQL 4 on host. Host provider just upgraded to MySQL 5.1 and now App gets:

Access denied for user XXX (using password YES)

I can connect through CPanel so user/pass is correct. Any ideas?

MySQL problem (no replies)

$
0
0
Hy everybody!

I get this error message:
SQLSTATE[28000] [1045] Access denied for user '___________@'localhost' (using password: NO) How can I fix it?

Thanks,

FEDERATED (no replies)

$
0
0
Hi

I have a SP that Works with Federated Tables, If I execute the SP on Workbench 5.2CE Works fine, but if I execute the SP's on one application (Built with PowerBuilder) used ODBC 5.2w always I have gotten the message of "time out, some ideas to fix it?

ODBC CONNECTION ERROR (no replies)

$
0
0
Hello!!!

I successfuly installed the ODBC Connector but upon configuring and running the test I get the error code Can't connect to MySQL Server on 'localhost'(10061)

problem connecting MS access to remote MySQL data source (no replies)

$
0
0
I am on a desktop Windows 7 Ultimate 64-bit machine. The MySQL database I am trying to connect to is on a remote virtual machine on our local network.
I have installed, in order, the MySQL 64-bit connector (5.1.13) which by default went to c:\Program Files (x86) and the MySQL 32-bit connector (5.1.13) which I forced, using custom install, to C:windows\SysWow64.
The address of the virtual machine containing the MySQL db is at say, 999.999.9.99. I can ping this address from my machine and get positive responses.
Trying to establish a connection I do this.
Run (double-click) adbcad32.exe as administrator from C:/Windows/SysWOW64/ using windows explorer.
The ODBC Data Source Administrator window opens.
I click Add and a list of drivers is displayed.
I select MySQL ODBC 5.1 Driver and click finish.
The MySQL Connector/ODBC Data Source Configuration interface opens.
I enter Data Source Name and Description using whatever comes to mind - just text.
I enter the TCP/IP Server address as 999.999.9.99, the User, and the Password which work when I am using VM Sphere (by the way, a Linux VM)
Then in the Database dropdown of the MySQL configuration tool I don't see any databases listed - this is different from the other desktop in our office with which I can connect.
I click test button and error displayed is "Connection Failed: [HY000][MySQL][ODBC 5.1 Driver]Connection using old (pre-4.1.1) authentication protocol refused (clientoption 'secure_auth' enabled)
I've searched this error literally for days and none of the solutions seem to work.Please help.

odbc debug tracing dll? (no replies)

Execute an MSSQL Stored Procedure against a MYSQL database (1 reply)

$
0
0
Execute an MSSQL Stored Procedure against a MYSQL database


I have an MSSQL database that must get selected fields from MYSQL database and insert them on my sql database.

I have created a linked server and can perform simple queries against the MYSQL database but I am not sure how to run an MSSQL stored procedure against the MYSQL database. i'm thinking of having insert trigger on my MySQL table to call a procedure on MS SQL that will select and insert the field i want.
Can anyone help?

how connecting oracle solaris to mysql windows (no replies)

$
0
0
Hi,

Can anyone help me to connecting oracle solaris to mysql windows?

For the information

DB1 :
Oracle 11gr2
Solaris 10
DB/Instance : ORA43
user : ora8


DB2 :
MySQL 5.5.16
User: root@localhost
Windows XP
dbname : barcode


I have follow step in http://www.unixodbc.org/ as Doc ID 1320645.1

step 1
kfdc2devoracle:ora8>file $ORACLE_HOME/bin/dg4odbc
/EVA8100_kfdc2devoracle/ora8/oracle/db/tech_st/11.2.0.2/bin/dg4odbc: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked, not stripped

step 2
I have download ODBC Driver Manager in http://www.unixodbc.org/ and follow step to install dan configure

kfdc2devoracle:ora8>root@kfdc2devoracle # su - ora8
Oracle Corporation SunOS 5.10 Generic Patch January 2005
You have new mail.
kfdc2devoracle:ora8>bash
kfdc2devoracle:ora8>. dbORA43
kfdc2devoracle:ora8>cd /EVA8100_kfdc2devoracle/ora8/unixODBC-2.3.2
kfdc2devoracle:ora8>echo $PATH
/EVA8100_kfdc2devoracle/ora8/oracle/db/tech_st/11.2.0.2/perl/bin:/EVA8100_kfdc2devoracle/ora8/oracle/db/tech_st/11.2.0.2/bin:/usr/ccs/bin:/usr/sbin:/EVA8100_kfdc2devoracle/ora8/oracle/db/tech_st/11.2.0.2/jdk/jre/bin:/usr/ucb:/usr/ccs/bin:/usr/local/bin:/usr/bin:.
kfdc2devoracle:ora8>export PATH=$PATH:/usr/sfw/bin
kfdc2devoracle:ora8>./configure --prefix=/usr/local/unixODBC
kfdc2devoracle:ora8>make
kfdc2devoracle:ora8>make install
kfdc2devoracle:ora8>./configure --sysconfdir=/etc

root@kfdc2devoracle # ls -la /usr/local/unixODBC/
total 21
drwxrwxrwx 7 root root 7 Jul 8 08:03 .
drwxr-xr-x 6 root root 7 Jul 8 08:03 ..
drwxrwxrwx 2 root root 12 Jul 8 15:53 bin
drwxrwxrwx 3 root root 5 Jul 8 08:03 etc
drwxrwxrwx 2 root root 12 Jul 8 08:03 include
drwxrwxrwx 2 root root 16 Jul 8 08:24 lib
drwxrwxrwx 3 root root 3 Jul 8 08:03 share


step 3
I have download and unpack the driver from http://dev.mysql.com/downloads/connector/odbc/#downloads
But i still get eror when install odbc driver

i follow this step in http://dev.mysql.com/doc/connector-odbc/en/connector-odbc-installation-binary-unix-tarball.html
it said :

The extra directory contains two subdirectories, lib and bin. Copy their contents to the proper locations on your system (we use /usr/local/bin and /usr/local/lib in this example; replace them with the destinations of your choice):

shell> cp bin/* /usr/local/bin
shell> cp lib/* /usr/local/lib


but /usr/local/lib in my solaris is a file not folder.
And error when i registering driver

kfdc2devoracle:ora8>pwd
/usr/local/bin
kfdc2devoracle:ora8>ls -la
total 8996
drwxr-xr-x 4 bin 10 Jul 6 10:34 .
drwxr-xr-x 6 root 7 Jul 8 08:03 ..
-rwxr-xr-x 1 dkstrn 2857 Jul 25 2014 coraenv
-rwxr-xr-x 1 dkstrn 2428 Jul 25 2014 dbhome
-rwxr-xr-x 1 bin 361099 Oct 3 2012 memconf
-rwxr-xr-x 1 root 8653376 Jul 8 08:20 myodbc-installer
-rwxr-xr-x 1 dkstrn 2560 Jul 25 2014 oraenv
drwxr-xr-x 2 root 3 Mar 13 2013 sparcv7
drwxr-xr-x 2 root 3 Mar 13 2013 sparcv9
-rwxr-xr-x 1 root 10044 Mar 13 2013 top
kfdc2devoracle:ora8>myodbc-installer
ld.so.1: myodbc-installer: fatal: libodbc.so.1: open failed: No such file or directory
Killed
kfdc2devoracle:ora8>myodbc-installer -a -d -n "MySQL ODBC 5.2 Driver" -t "Driver=/usr/local/unixODBC/lib/libmyodbc5w.so"
ld.so.1: myodbc-installer: fatal: libodbc.so.1: open failed: No such file or directory
Killed

ODBC connector not working (no replies)

$
0
0
does anyone have some suggestions for me?

keep getting error :

Connection Failed [HY000][MySQL][ODBC 5.1 Driver]Can't connect to MySQL server on ''my ip adress' (10061)

also titlebar of the ODBC connector form display's (application not responding).

i've tried to reinstall several times but no results.


installed ODBC driver :MySQL ODBC 5.1 Driver Versie 5.01.13.00


server software
Apache/2.2.16 (Debian)
MySQL-client versie: 5.1.73


MySQL Karakterset: UTF-8 Unicode (utf8)

can anyone help me?

ODBC very slow with windows10 (no replies)

$
0
0
Since I upgraded to Windows 10 all my ODBC Connections (MySQL and MS SQL have become very slow). Has anybody got an idea how to solve this?
I use MySQL-Server 5.5 on a Windows Server 2008 R2 and ODBC ANSI Driver 5.3.

Unsuported opition 10025 to SQL GetInfo Longitud (no replies)

$
0
0
I have instaled ODBC driver version 5.3.4 x86 to make a connection between MySQL and Microsoft Excel 2010 x86. In the Excel document I do a "Other Connection" in Data tab, I insert the credentials for the conneticion, when I test the connection it shows the message "Connection Successfull" but when I click "Ok" button this error message appears "Unsuported opition 10025 to SQL GetInfo Longitud de cadena o de bufer no valida" Unsuported opition 10025 to SQL GetInfo String length or buffer not valid. This happens when I try to do the connection with ANSI driver but if I do the connection with UNICODE driver everythig works fine but the problem with the UNICODE connection is that every time I open the Excel document I have to ask my boss for the MySQL password. I know that with the ANSI driverver connection the password is only set once.

Can someone help me hith this please.

[MySQL][ODBC 5.1 Driver][mysqld-5.0.41-community-nt]No database selected (no replies)

$
0
0
Hi!
I'm trying to make a query to 2 different databases in one query.
Connection string:
"DRIVER={MySQL ODBC 5.1 Driver};SERVER=w2003;PORT=3305;UID=***;PWD=***;STMT=set character_set_results=cp1251;" - e.g. here is no DATABASE property defined.

cn=Con.Open() works fine. My query:

q="select * from `tc-db-main`.personal where ID IN

(select * from `tc-db-log`.logs where LOGTIME>TIMESTAMP('2015-08-19 07:50:00'))"

but after Recordset.Open(q,cn,2,3) i've got an error "No database selected".

So, my question - is it possible using ADO make a query to different databases in one query? I'm not sure but it seems to me that it is not possible...Am I wrong?

Error in refreshing for mysql extract -Tableau software (no replies)

$
0
0
Hello,

I have my database on mysql, and I've made an extract on Tableau that is scheduled to be refreshed every hour.
However, I've noticed that it's not refreshing, error massage that I received in tableau server:

Unable to connect to the ODBC Data Source. Check that the necessary drivers are installed and that the connection properties are valid.


I've already downloaded some ODBC connections, but it's still not working.
Someone can assist me please?

Thanks

mySQL pooling with mySQL 5.5.30 and ODBC 5.2 (no replies)

$
0
0
Hello,

I want to use the pooling option in order to speed up the connexions to the mySQL server.

So I used this connection string in VB.Net

Public Cnx As New OdbcConnection("Driver={MySQL ODBC 5.2 ANSI Driver};Server=localhost;Port=3306;Database=mybase;User=root;Password=pwd;Option=3;pooling=true;")

But unfortunately it's the same time for opening a connection as if I set Pooling to false.

(1000 ms) each time

I was used to 1 ms with mysql 5.1.34 and ODBC 3.51


So please, is this the right connection string ?

Regards

MySQL ODBC - Error '523 80' (no replies)

$
0
0
Hi all -- I'm having trouble using ODBC from SAS to connect to a MySQL database. I think this is an ODBC setup issue. Please read on.

I have an internal Red Hat Linux (el6) x86_64 server (dev.myorg.com) running a MySQL server instance. Database works fine. Can connect via mysql client and also MySQL Workbench.

I downloaded and extracted the 64-bit Enterprise Red Hat MySQL ODBC library rpm from Oracle's website (mysql-connector-odbc-5.3.4-1.el6.x86_64.rpm) to my personal directory.
This is the right rpm for this architecture, I'm certain.
I do not have privs to install software as root. So I'm doing this in my own directories. I extracted the rpm file locally- my dir has these files in the lib64 subdirectory:

/prod/user/myapp/me/mysql_odbc_driver_5.3.4/usr/lib64/libmyodbc5a.so (ansi)
/prod/user/myapp/me/mysql_odbc_driver_5.3.4/usr/lib64/libmyodbc5w.so (unicode)

My $HOME/my_odbc.ini file looks like this. I'm pointing directly to the ODBC libraries here..

[ODBC]
IANAAppCodePage=4
InstallDir=/prod/user/myapp/me/mysql_odbc_driver_5.3.4/usr/lib64
Trace=1
TraceFile=
TraceDll=

[ODBC Data Sources]
data_source_name = devdbb

[devdbb]
Driver = /prod/user/myapp/me/mysql_odbc_driver_5.3.4/usr/lib64/libmyodbc5a.so
Description = Connector/ODBC 5.34 Driver DSN
SERVER = dev.myorg.com
PORT = 3306
USER = root
Password =
Database = test
OPTION = 3
SOCKET =


I did these commands:
--------
export LD_LIBRARY_PATH=/prod/user/myapp/me/mysql_odbc_driver_5.3.4/usr/lib64:$LD_LIBRARY_PATH
export ODBCINI=/prod/users/sasadm/me/my_odbc.ini

Finally I have a SAS test script which does this
--------
libname mytest odbc dsn=devdbb user=root password=newpwd cursor_type=dynamic;

This is the SAS 9.3 ODBC error I get. I am running 64-bit SAS by the way.
-------
1 libname mytest odbc dsn=devdbb user=root password=XXXXXX cursor_type=dynamic;
ERROR: CLI error trying to establish connection: 523 80
ERROR: Error in the LIBNAME statement.

My google searches revealed that '523 80' means the ODBC library cannot be loaded. Something is wrong with my ODBC setup I think. i tried 'libmyodbc5w.so' also with no luck.
Is there some impediment against my installing these libraries locally and not on the system as root? Please what am I missing here?
Any ideas how I can fix this? Thank you!
Viewing all 1136 articles
Browse latest View live


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