Bug #18069 | Request returded with SQL_ERROR. | ||
---|---|---|---|
Submitted: | 8 Mar 2006 11:36 | Modified: | 1 Jun 2006 8:11 |
Reporter: | Goodspeed Lin | Email Updates: | |
Status: | Can't repeat | Impact on me: | |
Category: | Connector / ODBC | Severity: | S1 (Critical) |
Version: | MyODBC 3.51.12 | OS: | Windows (Windows Server 2003 std.) |
Assigned to: | CPU Architecture: | Any |
[8 Mar 2006 11:36]
Goodspeed Lin
[8 Mar 2006 17:33]
Goodspeed Lin
Request returned with SQL_ERROR
Attachment: 未命名--1.jpg (image/jpeg, text), 51.87 KiB.
[9 Mar 2006 1:45]
Goodspeed Lin
I use Outpost professional firewall. I have to try disabled it, but the error is never gone. like the case : http://forums.mysql.com/read.php?37,55400,71229#msg-71229
[29 Mar 2006 14:20]
Tonci Grgin
Hi. Thanks for your report. This usually happens when server you entered in configuration is not running. Try starting server service first. If this is not the case, I'll investigate further.
[30 Mar 2006 11:36]
Goodspeed Lin
Hi, The MySQL service is always on. Coz the PHP pages is running normally. The web and mysql server is in the same machine. And when I use myodbc 5.0.0 alaph, the returned msg can't be showed.
[30 Mar 2006 13:19]
Tonci Grgin
Are you using System DSN or File DSN? If you're using File DSN, what did you put under Advanced tab (connection string and all)? What are your settings for System DSN?
[30 Mar 2006 16:34]
Goodspeed Lin
Hi, I use System DSN. data source name = act server = localhost user = mysql user password = ******** The others settings are by default. The settings is same as web service.
[30 Mar 2006 19:58]
Tonci Grgin
Are you able to connect from cmd line tool (mysql - u...) with the same parameters?
[4 Apr 2006 10:26]
Goodspeed Lin
When I type "mysql -u root -p" in cmd And type the pwd, I got the error message. ERROR 2013 (HY000): Lost Connection to MySQL server during query What's happened? The user and password is corrrect, I can use it to login phpMyadmin.
[5 Apr 2006 7:54]
Tonci Grgin
Strange. This error can also be caused by the windows firewall (depending on what you're doing, like running it manually from the prompt). Try going to start/settings/copntrol panel/windows firewall. Click on the exceptions tab and make sure mysqld is ticked, you can also click edit change scope and set "my network only" so it has no internet access. Also can you please post output of show variables and show status commands and your my.ini file.
[6 Apr 2006 8:50]
Tonci Grgin
Can you provide result for netstat -a? Maybe MySQL server is not on port 3306, as expected by default settings? Check firewall by executing "telnet localhost 3306". If there's no answer, then connection is blocked or no program listening on port 3306.
[6 Apr 2006 12:16]
Goodspeed Lin
Hi, I already upload the image. I have disabled the Microsoft firewall. About the firewall, I'll check OutPost.
[8 Apr 2006 20:03]
Tonci Grgin
Maybe this will help: http://bugs.mysql.com/bug.php?id=14950 24 Nov 2005 13:00] Nekhayev Dennis I have got the same problem. Try to remove Microsoft Firewall Socket Provider from registry. I did it with Autoruns (www.systeminternals.com). The registry key: HKLM\System\CurrentControlSet\Services\WinSock2\Parameters\Protocol_Catalog9
[14 Apr 2006 3:29]
Goodspeed Lin
run autoruns
Attachment: autoruns.png (image/png, text), 17.84 KiB.
[14 Apr 2006 3:45]
Goodspeed Lin
I didn't see about "Microsoft Firewall Socket Provider" words. How do I remove or disable it ?
[14 Apr 2006 6:53]
Tonci Grgin
If we can try one more thing. Please try to remove password from the account you're using to connect (remember to flush privileges!) and then try to connect again. Inform me of the result.
[29 Apr 2006 19:17]
Goodspeed Lin
I have been to add a acoount, flush all privilege, and remove the password. I can use it to login phpMyAdmin with no password. But I use it to login cmd, it returned: ERROR 2013 (HY000): Lost connection to MySQL server during query PS. The time, outpost is on !
[29 Apr 2006 19:40]
Marshall Gatten
I have a very nearly identical situation. Same error messages, same conditions. The only difference is that I am able to successfully login at the cmd prompt using mysql.exe. I have tried turning off my firewalls completely. (I'm using ZoneAlarm in addition to the WinXP firewall.) And the message in the ODBC Data Source Administrator persists. I have also tried removing the password on the account as suggested above, with negative results. I'm running MySQL 5.0 and WinXP SP2.
[29 Apr 2006 19:41]
Marshall Gatten
I should mention: I'm running the database on the localhost.
[30 Apr 2006 3:13]
Marshall Gatten
Sorry for the triple post, but I'm still working on the problem and want to be sure the response I get isn't to go do something I've already done. :) Anyway, I completely uninstalled ZoneAlert (as suggested elsewhere) and also completely turned off my Windows XP Firewall, and even turned off my antivirus software. Then I rebooted into that completely naked state, and tried to connect. The same error messages still showed up. I can't think of anything else I can do. (I have since turned all the protection back on - just for the heck of it - tried again with predictable results.) Dead end, brick wall. Where can I go from here?
[30 Apr 2006 7:54]
Marshall Gatten
Okay, so now it's a quadruple post. Sorry. I now have it working perfectly. I backed up my database, uninstalled MySQL without uninstalling MyODBC, reinstalled MySQL, and restored my database. It immediately started working as though nothing was ever wrong. Zone Alarm is up and running, and needed no adjustments of any kind, and the same can be said of the Windows Firewall and my antivirus software. Whatever the bug is, it appears to have nothing to do with Zone Alarm. Hopefully, you'll find that to be useful information.
[30 Apr 2006 16:38]
Tonci Grgin
Hi all. Mashall, tanks for your findings. It was the next thing I would have suggested. These kind of errors ("...does not work on my machine...") are hard to reproduce. Dolittle Lin, can you please do as Marshall sugessted: "I now have it working perfectly. I backed up my database, uninstalled MySQL without uninstalling MyODBC, reinstalled MySQL, and restored my database. It immediately started working as though nothing was ever wrong." and inform me of results.
[30 May 2006 23:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[31 May 2006 4:31]
Goodspeed Lin
When I removed the firewall(Outpost), MyODBC is running normally. I use NOD32 antivirus, so it's not NOD32 business. I use Outpost for a long time(over five years) and MyODBC together. The problem seem occur MyODBC 3.51.12 & .11. I use MySQL 5, so must be upgrade MyODBC.
[31 May 2006 8:28]
Tonci Grgin
Hi. I am not familliar with Outpost firewall. Can you point me to where I can get freeware version so I can test?
[31 May 2006 8:34]
Goodspeed Lin
http://www.agnitum.com/products/outpost/download.php Outpost Personal Firewall Pro gives you the latest in personal firewall technology, making it the clear security choice for your system. Explore the power and ease of use of Outpost Firewall - download the free 30-day trial version. From 2.1 to 3.5 version, the error has been existed. Thank for your testing :)
[31 May 2006 8:52]
Tonci Grgin
Thanks for your input.
[31 May 2006 10:24]
Tonci Grgin
Hi. I installed Outpost firewall with most options set to common settings. I am unable to reproduce the error you get which leads me to conclusion that something about your firewall configuration blocks MyODBC attempt to connect. Environment: MySQL server 5.0.22-log (WinXP SP2 - windows firewall completely disabled, localhost), 5.0.23-debug (Suse 10.0 linux, Suse firewall configured to open ports 3306 and 3307) MyODBC 3.51.12 GA
[31 May 2006 10:27]
Tonci Grgin
Port and address Windows use to set up file DSN
Attachment: 18069.jpg (image/jpeg, text), 24.91 KiB.
[1 Jun 2006 8:11]
Goodspeed Lin
Hello, I just dl MySQL 5.0.22 to try. The Windows XP platform can be running normally. But the Windows Server 2003 is still getting the same problem. 1. can't use System DSN to connect MyDOBC. 2. cmd can't connect. The error statement is same as before. And I have to try disabled Outpost, it's same as not yet disabled.
[2 Jun 2006 19:22]
Tonci Grgin
Hi. I am informing you that we conducted test on W2k3 machine with Outpost running and found no problem. Please recheck your system / firewall settings.