Hi,
I try to connect to a database with the following code.
#define host 192.168.105.105
#include mysql.h
MYSQL mysql;
int exiterr(int i)
{
fprintf(stderr,%s\n,mysql_error(mysql) );
exit(i);
}
int main(void)
{
/* . */
if
Hi,
it's possible that db 'test' doesn't exists
mysql should run, 'coz mysql_connect was successfull.
check if you are connecting to right host and permissions from mysql
(if usr1 has access to db test and have logon from another host other
than localhost)
but if mysql_error return this error