[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

mysql_select_db



Hi,


I am having a problem with my client in VC++ for selecting a database on
Linux - Mysql.

Im using the MyODBC version 2.5 as the client driver.

The client connects to the server fine but fails on the code below while
selecting the database.



----------------------------------------------------------------------------
----

int ret1 = mysql_select_db(mysql,db_name);
 if(ret1==0)
 {
       error = mysql_errno(mysql); // error = 0  ?????
}

----------------------------------------------------------------------------
----


The privileges in the mysql db are all properly set up. I restarted the
daemon - mysqld and the server too, still no luck.

This was working 3 days ago. I wonder what the problem is  ?

Is this a prob of mysql ? Should it be re-installed. ?

Could I have some help on this coz this is urgent

Thanx,

Vivek.
Versaware Inc.
vivekb@xxxxxxxxxxxxx
----------------------------------------------------
Enthusiasm is contagious. Start an epidemic.