473,396 Members | 2,002 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,396 software developers and data experts.

MyODBC Connection Problem

I was trying to establish a DSN using myodbc 5.1 to a live website's mysql database.

I could finally get the DSN connection to successfully connect to the remote MySQL server using the hostname, username and password only . It succeeded, but when I use the database name in the DSN configuration it fails to connect the username to the database. although the entries are all correct and I tried to create different users for that database.

The connection succeeded with all the users, it fails only when you input the database name even though they are all users of that specific database.
May 26 '10 #1
4 1838
Atli
5,058 Expert 4TB
Hey.

Are you sure you set the correct value for the host when you granted the users access to the database?

Try checking the mysql.db table and see if it contains the correct values.
Expand|Select|Wrap|Line Numbers
  1. SELECT `Host`, `Db`, `User` FROM mysql.db WHERE `User` = 'Atli';
May 27 '10 #2
Dear Atli

I checked that , everything was okay>
where can I find the mysql.db table?

Bob
May 27 '10 #3
Atli
5,058 Expert 4TB
where can I find the mysql.db table?
It's the "db" table of the "mysql" database. You will need root-like privileges to access it though. Just execute the query I posted and you will see whether you can access it or not.
May 27 '10 #4
I tried to run the query on the sql command window phpmyadmin-mysql
it returns (no database selected)
in my databases section I can't see other than the websites databases
I downloaded the latest version of MyODBC 3.xxx and I still have the same problem. it connects without a database name only
May 27 '10 #5

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

Similar topics

0
by: John Benson | last post by:
Thanks much for help with the Oracle db connection problem. That, plus some local assistance getting the sqlnet.ora default domain right, got everything fixed. Now I'm connected, and have been able...
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! -...
0
by: jj | last post by:
I've got a table of about 400,000 records but when I transfer it from Access to MySQL, the ODBC connection dies around 3,000 records or so (or about 3-5mins) with this error: ODBC -- call failed...
1
by: Polarsilver | last post by:
Hello, I have problem with the connection between MySQL 5.0 and my ASP.NET (VB) homepage. Framework 1.1 and Visual Studio .NET 2003. I have installed MyODBC 3.51 driver. I'm using Windows XP SP2...
17
by: Danieltbt05 | last post by:
just installed SQL server 2000 and using my client , i can't locate the server. I used SQL query analyzer to search but no servers were found. Error message is as below Server : Msg17,level...
1
by: Robert Jones | last post by:
I am trying to set up an ASP site on a Windows 2003 server and am having problems connecting to the database. To isolate the problem I created a simple ASP test page which simply created an ADO...
5
by: Suresh | last post by:
Hi Guys I have Db2 server installed on remote server. i am connecting to that remote server by using VPN. I want to connect that remote DB2 server instance using my local machine DB2...
2
by: junal | last post by:
I developed an web application using ASP.NET. i used MS SQL DB 2000. it worked fine in my local host.Kept the backup of DB when i reinstalled my win XP. problem is i insstalled .NET2005 again like b4...
2
by: dc | last post by:
I have a baffling connection problem from my C# console app to a sql server express database. The console application opens the sql database using the following code:- vDataSource = "server =...
1
by: sherifbk | last post by:
Problem description ============== - I have 4 clients and 1 server (SQL server) - 3 clients are Monitoring console 1 client is operation console - Monitoring console collects some data from...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.