Forums » General Discussion

Thread: Toad MySQL Can not connect database in Windows 7 64bit Ultimate

This question is not answered. Helpful answers available: 2. Answered answers available: 1.


Permlink Replies: 3 - Pages: 1 - Last Post: Jul 25, 2011 11:07 PM by: vasu4u
Shining

Posts: 2
Registered: 4/30/11
Toad MySQL Can not connect database in Windows 7 64bit Ultimate
Posted: Apr 30, 2011 6:42 AM
 
  Click to reply to this thread Reply
Attachment toad.pcap (611 bytes)

When trying to connect, always go the following errors.

System.TimeoutException
Timeout in IO operation
Stack Trace:
at MySql.Data.MySqlClient.TimedStream.StopTimer()
at MySql.Data.MySqlClient.TimedStream.Read(Byte[] buffer, Int32 offset, Int32 count)
at System.IO.BufferedStream.Read(Byte[] array, Int32 offset, Int32 count)
at MySql.Data.MySqlClient.MySqlStream.ReadFully(Stream stream, Byte[] buffer, Int32 offset, Int32 count)
at MySql.Data.MySqlClient.MySqlStream.LoadPacket()
at MySql.Data.MySqlClient.MySqlStream.ReadPacket()
at MySql.Data.MySqlClient.NativeDriver.Open()
at MySql.Data.MySqlClient.Driver.Open()
at MySql.Data.MySqlClient.Driver.Create(MySqlConnectionStringBuilder settings)
at MySql.Data.MySqlClient.MySqlConnection.Open()
at Quest.Toad.MySQL.MySQLConnection.DoBeforeConnect()
at Quest.Toad.Db.Connection.Connect(Boolean notify)
at Quest.Toad.Db.Provider.BackgroundConnector.CreateBackgroundConnection()

-- From the network sniffer, I saw the successful login already.

-- I tried 5.0 release version and 6.0 beta, both are the same.

-- NOTE: when using the same binaries in a Windows 7 32bit, it works fine.
And for the same Windows 7 64 bit Ultimate machine, try MySql Workbench 5.2 CE, works fine, there is no connection problem between this machine and server.

So I think this is a Toad bug, sniffer file attached for your investigation.

Thanks


Mauritz

Posts: 314
Registered: 8/23/07
Re: Toad MySQL Can not connect database in Windows 7 64bit Ultimate
Posted: May 2, 2011 10:52 AM   in response to: Shining
 
  Click to reply to this thread Reply

This almost seems like some sort of firewall issue.

Are you running a firewall (Windows has one by default and will complain loudly if disabled)? If so could you briefly disable it and try if you can connect then? (Make sure you are behind a NAT router, another firewall or just disconnected before doing this)



Shining

Posts: 2
Registered: 4/30/11
Re: Toad MySQL Can not connect database in Windows 7 64bit Ultimate
Posted: May 8, 2011 4:28 PM   in response to: Mauritz
 
  Click to reply to this thread Reply

Mautirz, thanks for the reply.

However, the trouble machine and MySql server are in the same subnet, there is no firewall between them.

(-) Sniffer log shows successful two way communication, and to me, Toad already successfully login the DB.

(-) It is running good with MySql workbench 5.2 CE from the SAME Windows 7 64bit to access the same MySql DB using the same account.

But I still like to use Toad.  Hope the sniffer log attached in the original email could give you hint, which additional TCP segment Toad is still waiting?  Is this optional from MySql side?  Thanks.




vasu4u

Posts: 1
Registered: 7/25/11
Re: Toad MySQL Can not connect database in Windows 7 64bit Ultimate
Posted: Jul 25, 2011 11:07 PM   in response to: Shining
 
  Click to reply to this thread Reply

 This happens when you try to make connection withMySql database from within .NET and is a privileges issues. For resolution, please follow these steps,

1- Run > Command Prompt

                Move to C:\Program Files\MySql\bin folder. Path for me appears as following,

       C:\Program Files\MySQL\MySQL Server 5.5\bin> 

2- Log into My Sql by exeucting the following command,

       mysql -u root -p

                You will be prompted for password.

       Enter password:

                On successfull password input you will log into mySql console,

                mysql> _

3- Grant All Privileges

                Execute following command under my sql console,

       grant all privileges on *.* to `root`@`%` identified by 'password';

                Upon successfull completion of command you will recieve confirmation simialr to this,

                Query OK, 0 rows affected (0.05 sec)

Note: Pay special heed to position of apostrophe vs. commas. Usernameis enclosed within apostrophy(`) where as password within commas (').

4- Flush Privileges

                Execute following command to ensure the privileges take affect,

       flush privileges;

                which will result in notification similar to this,

                Query OK, 0 rows affected (0.11 sec)

                You are done. Switch back to Visual Studio to test your settings are properly taking affect. To exit mysql console type exit and press enter. Above steps are summarized in figure below,




Legend
Guru: 2001 + pts
Expert: 751 - 2000 pts
Enthusiast: 31 - 750 pts
Novice: 0 - 30 pts
Moderators
Helpful answer (5 pts)
Answered (10 pts)

Point your RSS reader here for a feed of the latest messages in all forums