mysql_real_connect()像下面一样使用:
if (!mysql_real_connect(&mysql,"host","user","passwd","test",0,NULL,0))
打个比方:这两个数据库,一个test,一个information_schema。要是按照
mysql_real_connect(&mysql,"host","user","passwd","test",0,NULL,0)这一句是不是只能对test数据库操作而不能对information_schema有什么操作?
还有一种将"test"改成NULL,
mysql_real_connect(&mysql,"host","user","passwd",NULL,0,NULL,0)是连上默认数据库,是不是还是只能连上一个数据库?
新手求指点!!!