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 » can't connect to mysql server on localhost 10061

Post new topic  Reply to topic
 can't connect to mysql server on localhost 10061 « View previous topic :: View next topic » 
Author Message
anurag.munjal
PostPosted: Tue Apr 23, 2013 9:25 pm    Post subject: can't connect to mysql server on localhost 10061 Reply with quote

Voyager

Joined: 08 Apr 2012
Posts: 97

Hi Team,
I am a novice in feild of configurations!

I have succfully installed mysql management studio 2008. Created a database, table and stuff.
Now to play with this database from message broker, i need a DSN.

When i create a DSN, i cannot test the DSN at the time of its creation.
I have installed the reuired drviers and stuff.... tried google on it, localhost, 127.0.0.1, port 1433 and all.... the DSN window just doenst show any database on mySql. i should be raising this concern in MySql area i konw, but just thought if any one good with this issue please?

Thank you!

Anurag Munjal
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Apr 23, 2013 10:25 pm    Post subject: Reply with quote

Jedi Council

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

Which version of Broker are you using?
Is your chose DB one of those supported by this version of broker for ODBC connections?
Is it supported for JDBC connections?
_________________
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
anurag.munjal
PostPosted: Tue Apr 23, 2013 11:08 pm    Post subject: There you go Reply with quote

Voyager

Joined: 08 Apr 2012
Posts: 97

Hi!
Quote:
Which version of Broker are you using?
Message broker 8. i downloaded the trial version. the debuggeer, samples (not using any database) are all running perfeclt yfine... s trying to get a DB connected so that i can learn the database oriented samples also!
Quote:

Is your chose DB one of those supported by this version of broker for ODBC connections?

heres a link to the DB that i chose, i hope it works fine with this version 8 sample broker?
http://social.msdn.microsoft.com/Forums/en-US/sqlexpress/thread/ea708ab0-0253-4f95-8448-00bd31a22a65/
Quote:
Is it supported for JDBC connections?


its a well established name, mysql management studio, so i guessed it should go well!
Please let me know if i need to install and configure some other DB for learning purpose? thankyou!
Back to top
View user's profile Send private message
smdavies99
PostPosted: Tue Apr 23, 2013 11:15 pm    Post subject: Re: There you go Reply with quote

Jedi Council

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

anurag.munjal wrote:
Hi!

heres a link to the DB that i chose, i hope it works fine with this version 8 sample broker?
http://social.msdn.microsoft.com/Forums/en-US/sqlexpress/thread/ea708ab0-0253-4f95-8448-00bd31a22a65/
Quote:
Is it supported for JDBC connections?




What I meant was...

does the IBM documentation stated that your chosen Database is one of those supported for ODBC connections?

If it is, did you create a System DSN and not a user DSN?
_________________
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
anurag.munjal
PostPosted: Thu Apr 25, 2013 6:49 pm    Post subject: Ok! Reply with quote

Voyager

Joined: 08 Apr 2012
Posts: 97

Hi Jedi,
Quote:
does the IBM documentation stated that your chosen Database is one of those supported for ODBC connections?


Yes, i just confirmed it! MySqlServer is supported by message broker v8
Quote:
If it is, did you create a System DSN and not a user DSN?

I created a User DSN as a System DSN, the Windows system says as you are logged in with Non Administrative privlages, you are not allowed to create a system DSN.
Now my Windows has gone crazy, as i have no user account in my laptop! I just have one single account and that is ADMINISTRATOR!

Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Apr 25, 2013 8:48 pm    Post subject: Re: Ok! Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

anurag.munjal wrote:
Hi Jedi,
Quote:
does the IBM documentation stated that your chosen Database is one of those supported for ODBC connections?


Yes, i just confirmed it! MySqlServer is supported by message broker v8
Quote:
If it is, did you create a System DSN and not a user DSN?

I created a User DSN as a System DSN, the Windows system says as you are logged in with Non Administrative privileges, you are not allowed to create a system DSN.
Now my Windows has gone crazy, as i have no user account in my laptop! I just have one single account and that is ADMINISTRATOR!



You need to right click the icon and do run as administrator.
It is called running under elevated privileges. (or RAA Running As Admin)

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
smdavies99
PostPosted: Thu Apr 25, 2013 10:19 pm    Post subject: Re: Ok! Reply with quote

Jedi Council

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

anurag.munjal wrote:

Now my Windows has gone crazy, as i have no user account in my laptop! I just have one single account and that is ADMINISTRATOR!



The wonders of a totally borked ecosystem, namely MS Windows.
_________________
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
anurag.munjal
PostPosted: Fri Apr 26, 2013 7:33 pm    Post subject: Reply with quote

Voyager

Joined: 08 Apr 2012
Posts: 97

Hi Poobah,
Quote:
You need to right click the icon and do run as administrator.

Yep, i did the same! Still stuck at the same point!
Between as a i said, there is no user account. there is just one single account on my laptop, and that is ADMIN! anyways...i did try your idea almost 100 times...still no luck!
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Apr 26, 2013 10:06 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

So what happens when you test your system DSN?
Does it work?

_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
anurag.munjal
PostPosted: Sat Apr 27, 2013 1:50 am    Post subject: Reply with quote

Voyager

Joined: 08 Apr 2012
Posts: 97

Poobah,

1. Whenever i enter the tab system DSN, windows shows a pop up- since you are logged in with non admin privlages, you cannot create a SYSTEM DSN.
2. Despite this popup, i am able to create a DSN after i click ok on the pop up window.
3. when i test this dsn from the SYSTEM DSN creation window, its not succesfull.

Anyways, am now trying with Oracle database with sqldeveloper. Will revert back.

Thanks anyways!
Cheers!
Back to top
View user's profile Send private message
Vitor
PostPosted: Sat Apr 27, 2013 10:04 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

anurag.munjal wrote:
1. Whenever i enter the tab system DSN, windows shows a pop up- since you are logged in with non admin privlages, you cannot create a SYSTEM DSN.


So, as my associate pointed out, you're not running with elevated rights, despite the user being called "ADMIN". Which is the same as being called "BINGO" is the rights it conveys.

anurag.munjal wrote:
2. Despite this popup, i am able to create a DSN after i click ok on the pop up window.


Yes, but not a SYSTEM one as the popup pointed out.

anurag.munjal wrote:
3. when i test this dsn from the SYSTEM DSN creation window, its not succesfull.


Because you didn't create a SYSTEM DSN! Shock!!!

anurag.munjal wrote:
Anyways, am now trying with Oracle database with sqldeveloper. Will revert back.


In the belief you'll have more luck creating a SYSTEM DSN without the necessary Windows rights for Oracle than you did creating a SYSTEM DSN without the necessary Windows rights for MySQL?

Good luck with that.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
anurag.munjal
PostPosted: Sat Apr 27, 2013 7:21 pm    Post subject: Reply with quote

Voyager

Joined: 08 Apr 2012
Posts: 97

Hi Vitor,

Check out this link, it will explain you that my point was correct!

http://deinfotech.blogspot.in/2011/09/odbc-system-dsn-warningyou-are-logged.html

As i said, there is no user account in my laptop. The only account is the ADMINISTRATOR!

Although the link i just gave is for one smart guy running Windows Server 2008 (with Service Pack 2), it works exaclty same for Windows 7 ultimate!

And the good news it that Oracle database has now been set up! Tables are good, and Yes, The SYSTEM DSN has been tested succesfull...Hurrayyyyyy

And now its time to play with this database from Message broker!
Thank you smdavies99, fjb_saper and Vitor for your inputs!
Cheers!
Back to top
View user's profile Send private message
anurag.munjal
PostPosted: Sun Apr 28, 2013 4:15 am    Post subject: Text:CHARACTER:[Microsoft][ODBC Driver Manager] D Reply with quote

Voyager

Joined: 08 Apr 2012
Posts: 97

Hi guys,
System DSN is showing a succesfull test connection in the system DSN creation window.

Now i executed this command on broker console:
Code:
mqsisetdbparms <brokername> -n <SYSTEM DSN NAME> -u <DB user name> -p <DB Password>


and then i tried to execute this peice of esql code from a compute node specifiying the Data source name at the compute node property:
[code]
Quote:
set OutputRoot.XMLNSC.DataFromDB[] = SELECT P.NAME FROM Database.orcl.EMPLOYEE AS P;

orcl is the TNS service name.

And got this exception.
Quote:
Text:CHARACTER:[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
Did i just miss something??
Back to top
View user's profile Send private message
anurag.munjal
PostPosted: Sun Apr 28, 2013 4:21 am    Post subject: DONE Reply with quote

Voyager

Joined: 08 Apr 2012
Posts: 97



THANKYOU THANKYOU THANKYOU

The above comment from me, i just figured out from a sample, that i need not give the TNS name.

now i wrote
Code:
set OutputRoot.XMLNSC.DataFromDB[] = SELECT  P.NAME FROM Database.EMPLOYEE AS P;

AND IT WORKED


YIPPYY.... thanks guys
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 » can't connect to mysql server on localhost 10061
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.