473,412 Members | 2,599 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,412 software developers and data experts.

ODBC 5.1 Driver connection fail

Hi,
I have a MySql 5.0 database installed on a remote server.
Until yesterday I have successfully communicated with it from other computers via ODBC 5.1 Driver.
What happened yesterday was that an application stopped on a data verification check (application specific) and the application was left with the connection open waiting for me to click ok on a warning. Since I had left for the day, the connection was left until this morning.
Then I found the dabase server crashed and I had to reinstall it to get it up and running again. And now it runs with aspx pages (so the ping test is passed ok). But I cannot get access from odbc from any of the computers.

Any idea what I can do?
Sep 10 '08 #1
3 4175
coolsti
310 100+
I am curious what platform you are working on.

If my database server crashes, I certainly would not reinstall it again. I would just stop and restart the server service. Perhaps you have done something in your reinstall that changed a configuration.

You may want to try to uninstall your ODBC 5.1 driver from the machine you are trying to connect from completely and reinstall it again. Or maybe try the older version and see if that works (3. something I think it is).
Sep 10 '08 #2
Hi,
I am using xp. I've reinstalled the MySql server without that it seems to help. I've also run the myisamchk without it seem to help anything.
The only thing that helped was to run mysqladmin shutdown and then mysqld --skip-grant-tables which leaves it completely open.
The windows services does not manage to start nor stop the MySql service.
Sep 10 '08 #3
coolsti
310 100+
I have only a little experience with Mysql on windows. Perhaps the proper way to shut down and restart the mysql in XP is with its own program, this mysqladmin. However, a complete reboot of the computer (if this is possible without interrupting other user activity) will do the trick to.

Sounds like if you can only connect if you skip the grant tables that something is amiss with your mysql users setup and their grant permissions. You could see what the mysql user and password is for your ODBC connection, and if you can take a peek at the tables in the "mysql" database, you can maybe see if the combination of host, user and password seem correct (ok, you probably cannot compare the password directly in these tables as they are encrypted but you may be able to compare using the Password() function in Mysql). Then of course you need to see if the corresponding grants are correct. Remember, it is not a matter of the username in Mysql, but the combination of Username and Host that matters. If you have the correct mysql username but the host is not the same as the ODBC driver is saying it is, your connection would be refused.
Sep 10 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Cliff | last post by:
We are trying to connect to 3 different Oracle databases using MS Access as the front-end and ODBC as the connection. The problem that we are having is that 1 of the databases requires a...
5
by: SerGioGio | last post by:
Hello, I am going nuts. I am trying to connect to my local ORACLE instance using ODBC. It used to work few weeks ago, but it fails now. Connection with: - SQL*plus: connection works! -...
11
by: DJJ | last post by:
I am using the MySQL ODBC 3.51 driver to link three relatively small MySQL tables to a Microsoft Access 2003 database. I am finding that the data from the MySQL tables takes a hell of a long time...
4
by: Andreas Lauffer | last post by:
Can anyone tell me advantages / disadvantages of DataDirect Server Wire ODBC-driver? Any experiences? What about redistribution? Andreas Lauffer, easySoft. GmbH, Germany
0
by: Me | last post by:
Hi all, Each new login to the PC, all the ODBC links to the SQL Server tables fail with the error "Connection failed" SQL Server Error 10061 Connection Open (connect()) Connection failed:
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
8
by: Greg Strong | last post by:
Hello All, The short questions are 1 Do you know how to make DSN connection close in Access to Oracle 10g Express Edition? &/or 2 Do you know how to make a DSN-less pass-through query...
2
by: 111mike | last post by:
Hello, Here's my problem. I cannot connect to mysql database using odbc string connections or dns. I keep getting a "cannot connect to mysql server localhost." I'm running windows XP Pro and...
3
by: zombiechewtoy | last post by:
I'm having trouble making an ODBC connection using VB.NET 2005. I have tried nearly every connection string found on connectionstrings.com, in almost every format I can think of. I have tried...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.