Author |
Message
|
anurag.munjal |
Posted: Tue Apr 23, 2013 9:25 pm Post subject: can't connect to mysql server on localhost 10061 |
|
|
 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 |
|
 |
smdavies99 |
Posted: Tue Apr 23, 2013 10:25 pm Post subject: |
|
|
 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 |
|
 |
anurag.munjal |
Posted: Tue Apr 23, 2013 11:08 pm Post subject: There you go |
|
|
 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 |
|
 |
smdavies99 |
Posted: Tue Apr 23, 2013 11:15 pm Post subject: Re: There you go |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
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 |
|
 |
anurag.munjal |
Posted: Thu Apr 25, 2013 6:49 pm Post subject: Ok! |
|
|
 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 |
|
 |
fjb_saper |
Posted: Thu Apr 25, 2013 8:48 pm Post subject: Re: Ok! |
|
|
 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 |
|
 |
smdavies99 |
Posted: Thu Apr 25, 2013 10:19 pm Post subject: Re: Ok! |
|
|
 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 |
|
 |
anurag.munjal |
Posted: Fri Apr 26, 2013 7:33 pm Post subject: |
|
|
 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 |
|
 |
fjb_saper |
Posted: Fri Apr 26, 2013 10:06 pm Post subject: |
|
|
 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 |
|
 |
anurag.munjal |
Posted: Sat Apr 27, 2013 1:50 am Post subject: |
|
|
 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 |
|
 |
Vitor |
Posted: Sat Apr 27, 2013 10:04 am Post subject: |
|
|
 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 |
|
 |
anurag.munjal |
Posted: Sat Apr 27, 2013 7:21 pm Post subject: |
|
|
 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 |
|
 |
anurag.munjal |
Posted: Sun Apr 28, 2013 4:15 am Post subject: Text:CHARACTER:[Microsoft][ODBC Driver Manager] D |
|
|
 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 |
|
 |
anurag.munjal |
Posted: Sun Apr 28, 2013 4:21 am Post subject: DONE |
|
|
 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 |
|
 |
|