ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Cannot connect to MySQL by unixODBC

Post new topic  Reply to topic
 Cannot connect to MySQL by unixODBC « View previous topic :: View next topic » 
Author Message
wese345
PostPosted: Tue Dec 17, 2013 11:58 pm    Post subject: Cannot connect to MySQL by unixODBC Reply with quote

Novice

Joined: 05 Aug 2013
Posts: 21

Hi , anybody

Our application is based on MySQL database and need to use WMB to expand its ability. So I install MySQL on our Linux Server and follow the instruction by the source bellow.
The website :
http://www.strangeparty.com/2011/12/15/message-broker-v8-with-mysql/

It's wired that I use command
Quote:
mqsicvp broker -n mysql

It shows that
Quote:
Can't connect to ODBC ...


Can anyone tell me how to make it work and can be connected by MB compute node?
Many Thanks!
Back to top
View user's profile Send private message
ajodowd
PostPosted: Wed Dec 18, 2013 12:52 am    Post subject: Reply with quote

Novice

Joined: 15 Dec 2013
Posts: 13

Hi wese345,

Can you post some details from the Windows or Linux logs?

Thanks, Anthony.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed Dec 18, 2013 12:53 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Did you use the mqsicvp command exactly as detailed in the website you linked to?

As I read your post and the website, the commands are different.

What version of Broker are you trying to connect to MySQL?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
wese345
PostPosted: Wed Dec 18, 2013 2:29 am    Post subject: Reply with quote

Novice

Joined: 05 Aug 2013
Posts: 21

smdavies99 wrote:
Did you use the mqsicvp command exactly as detailed in the website you linked to?

As I read your post and the website, the commands are different.

What version of Broker are you trying to connect to MySQL?


My MB version is 8.0.0.1.
The error info is below:
Code:
-bash-4.1$ mqsicvp -n esbmysql -u root -p root
 
BIP2393E: Database error: ODBC return code '-1' from data source ''esbmysql'' using ODBC driver manager ''/opt/ibm/IE02/2.0.0/lib/libodbcinterface.so''.
The broker received an error when processing a database operation. The ODBC return code was '-1'. See the following messages for information obtained from the database about this error.
Use the following messages to determine the cause of the error. Typical problems are an incorrect data source, or table names. Correct either the database or the broker configuration.
BIP2322E: Database error: SQL State ''08S01''; Native Error Code '2002'; Error Text ''[unixODBC][MySQL][ODBC 3.51 Driver]Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)''.
The error has the following diagnostic information:     SQL State             ''08S01''     SQL Native Error Code '2002'     SQL Error Text        ''[unixODBC][MySQL][ODBC 3.51 Driver]Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)''
This message may be accompanied by other messages describing the effect on the message broker itself.  Use the reason identified in this message with the accompanying messages to determine the cause of the error.
 
BIP8040E: Unable to connect to the database.
The database cannot be accessed with the specified user Id and password pair.
- Check that the database is running. 
 - Check that the database has an adequate number of database connections available for use. 
 - On Windows, check that an ODBC connection has been created. 
 - On systems that use $ODBCINI, check that the file pointed to by $ODBCINI has been correctly updated. 
 - On z/OS check the BIPDSNAO member of the component's dataset, and check the DB2 64bit ODBC driver (DSNAO64C) is in the STEPLIB. 
 - Use mqsisetdbparms to set the password to the correct value and try again.
-bash-4.1$


ODBC.ini info is :
Code:
[esbmysql]
Driver=/opt/ibm/mqsi/8.0.0.1/ODBC/V6.0/lib/libmyodbc5.so
Setup=/opt/ibm/mqsi/8.0.0.1/ODBC/V6.0/lib/libodbcmyS.la
DATABASE=esbdb
DESCRIPTION=MySQL ODBC 5.2 Unicode Driver test
SERVER=127.0.0.1
UID=root
PASSWORD=root
PORT=3306
socket=/var/lib/mysql/mysql.sock
CPTimeout=10000
User=root
FileUsage=1
Trace=off
UsageCount=50
Option=3


Please help me . Thanks.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Wed Dec 18, 2013 3:09 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

Strange that the two mqsicvp commands in your posts are different.... The second one is more useful at this stage.

Does executing the command
Code:

ls -la $ODBCINI


work correctly?

does doing


Code:

ldd -v /opt/ibm/mqsi/8.0.0.1/ODBC/V6.0/lib/libmyodbc5.so


show any missing libraries?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Cannot connect to MySQL by unixODBC
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.