MySQL Forums
Forum List  »  Connector/ODBC

Re: Access denied for user ODBC@
Posted by: shujing jia
Date: March 30, 2005 12:37PM

Hi,

Thanks a lot for your help. Actually I did the same way as you mentioned here, but still can not connect to the local MySQL database that I created. The following shows how I created the database, configue the MySQL ODBC, and establish connection through f90SQL from fortran code. Hope it will make more sense to you.

Step1 - create MySQL database

C:\mysql\bin>mysql -u root
mysql> create database testDB;
mysql> use testDB;
mysql> create table ...
mysql> insert into ...

Step2 - configue MySQL ODBC (v 3.51)

SystemDSN: mytestDB
Server: (use default)
User: root
Password: (none)
Database: testDB

Step3 - establish connection from fortran

username = 'root'
password = ''
call f90SQLConnect(ConnHndl, pcDSN, username, password, iRet)

The connection always failed with the return value -1 of iRet.

I also tried to ignore "username" and "password" by setting empty string and the connection failed too.


Shujing

Options: ReplyQuote


Subject
Written By
Posted
March 23, 2005 06:22AM
Re: Access denied for user ODBC@
March 30, 2005 12:37PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.