mysql_real_connect(&mysql,"127.0.0.1",user,psw,DB,MYSQL_PORT,NULL,0)))时连接正常。
当改成如下
mysql_real_connect(&mysql,"192.168.0.1",user,psw,DB,MYSQL_PORT,NULL,0)))
出错。出错信息为:#HY000Host 'null' is not allowed to connect to this Mysql server
int error=mysql_errno(&mysql);error=1130;请教一下,哪个地方出错了?为什么改一下IP就出错了?