Navicat MySQL 8.0.29 can’t connect to ntunnel_mysql.php Connection
Posted in Database, Troubleshooting, Windows on April 27th, 2009 by madhavaUPDATE: This problem is now solved by a newer version of Navicat.
Thanks for everyones contributions to this thread and may Ntunnel rock on!
Navicat MySQL 8.0.29 can’t connect to ntunnel_mysql.php Connection
Error: 101 - wininet error # 126 : (Unknown WININET error)
Ok here’s a really strange one, if you’re reading this page you no doubt have the same error above as I did.
After lots of testing and Googling I have concluded the following:
- The problem is due to wininet.dll in the C:\windows\system32\ directory.
- The problem might in part be caused by Internet Explorer 8, apparently other users are reporting other similar errors since installing Microsofts latest FAIL piece of software.
- The problem seems to only effect Vista, (I am on SP1) however my Windows 7 build 7000 system was unaffected as was XP.
The solution?
People have been talking about replacing the dll with one from XP. I was hesitant to replace my Vista dlls with ones from half a decade ago. Instead I opted for the working Win7 Beta dll
EDIT:
If you don’t have a good wininet.dll handy, google around or download this one. Just remember I am not responsible if you damage your own system.
Download my wininet.dll from Windows 7 Beta build 7000
You will need WinRar to extract the archive
http://www.rarlab.com
It worked!
The only issue I had was actually replacing the file as it’s a system file and windows doesn’t take kindly to our kind around those parts.
I backed up my old file and then copied the Win7 version to my local machine.
The next step was to gain ownership of the file so I could replace it.
Step 1)
I downloaded a reg script which adds Right-Click “Take Ownership” functionality to your user account.
http://www.howtogeek.com/howto/windows-vista/add-take-ownership-to-explorer-right-click-menu-in-vista/
After I ran the reg file, I right clicked on the file C:\windows\system32\wininet.dll
Step 2)
To be sure, to be sure, I ran a command line ownership from my Administrator Level Command Prompt.
http://www.tech-recipes.com/rx/2204/vista_how_to_take_ownership_system_file/
takeown /f c:\windows\system32\wininet.dll
Step 3)
I then downloaded a nifty application called Replacer:
http://www3.telus.net/_/replacer/
Once running, I typed:
At the first prompt:
“C:\windows\system32\wininet.dll” <- this is my current version which must die
At the second prompt:
“C:\wininet.dll” <- this is the version I copied from my Win7 Build 7000 Beta box.
After a reboot my Navicat MySQL was connecting to ntunnel connections again.
Hooray!
Good bye: wininet error # 126 : (Unknown WININET error)
There might be some official fixes for this from Navicat and or Microsoft in the near future, but in the mean time this works.
Many of the other applications that use wininet.dll don’t seem to have problems so I am not sure what the conflict with Navicat is directly.
I have tested this on two machines now and both work great.
I am sure I won’t be the only person with Vista, IE8 and Navicat MySQL wanting to use an ntunnel connection.
Good luck!



Where can I find the wininet.dll if I don’t have the windows7 installed somewehere? Could you please provide a link?
I have edited the post and provided a link to my version of the file.
Please be careful.
I suggest you create a System Restore point before you replace the dll, in case anything goes wrong.
Good luck!
Hi madhava,
Thanks a lot for the quick response, it worked within a few seconds! I already got tired of using phpMyAdmin for a few hours, so this tutorial was really helpfull! Keep up the good work!
Greetings
I am glad I could help!
Madhava
Great, thanks a lot for this post, helped alot.
Thanks a lot.. worked like a charm
Does not work with Vista x64. It nearly killed my whole system!
I did say “Just remember I am not responsible if you damage your own system.”
I am not surprised x64 bit Vista didn’t like that dll, either its not compatible because its not 64bit, or its signed differently to your Vista files. You can disable driver signing but its not recommended.
You could try getting the dll from a 64bit version of XP or Win7. The Windows 7 RC is available for download from Microsoft so you could always try that.
Good luck.
Thanks matey, I made it to the replacer step but it tells me:
* wininet.dll
-Replacing system file
! Copy Failed.
Press any key to quit
I’ve tried the replacer in both Administrator mode and normal user mode. I have the files in the same locations as you do above and the ownership step worked successfully so I’m not sure what I’m missing. Any ideas?
Cheers, Luc
ahhh, I see now. I looks like I didn’t actually do the Replacer in Administrator mode - this little point was missing from the steps. Teaches me for been so literal.
Hey, Thanks a lot for this tip!
Should point out that the replacer utility will not replace from a network drive so best to save the downloaded dll to C:\wininet.dll
Cheers,
Ciarán
Can anyone post a link to Windows 7 x64 wininet.dll?
Thanks so much! Damn you IE8! It worked perfectly, I was annoyed as hell when I couldn’t connect to our Linux servers at work from my home. Now every connection works like a charm again. Although it WAS a good excuse for not putting in extra hours :).
I keep coming back here because Vista automatically updates itself (this is the third time now!).
Actually - I just downloaded the latest version of Navicat from navicat.com and this problem seems to be fixed now. Woo!