0
how to solve "request returned with sql-error" during odbc connection?
7 Antworten
+ 1
@Priyan, explain in detail what is it exactly that you were doing, the error message, your connection string, and sql command.
+ 1
Okay, is mysql installed on the same computer where you code vb, or on another computer?
- Check if you can connect to mysql from command prompt, if you can connect from mysql CLI then check your ODBC connection, make sure all connection parameters are correct, including port number. Make sure mysql port is not blocked by firewall or antivirus software.
- If you can't even connect from mysql CLI check if mysql service is running, if it's not start the service and test connection again.
- If mysql service is running, mysql CLI can connect, but ODBC failed, uninstall mysql ODBC driver and reinstall again.
- If you can connect but still having problem check your sql command in vb code.
Good luck,
+ 1
Can you start mysql service manually?, what version is mysql?, try to start mysql service from the service manager, and select autostart on the mysql service configuration.
If you can't start mysql service you probably have a damaged mysql installation. Make backup if you have important database then reinstall mysql.
+ 1
You're welcome
0
i am trying to connect vb 6.0 (front end) and mysql (back end ).. during odbc connection.. "request returned sql_error" is occured!!
0
mysql is not running... it was getting stopped automatically..
0
I guess i had problem in root password..
anyways thanks for your replies