mysql中的mysql_real_connect连接参数设置
L_READ_DEFAULT_GROUP option before calling mysql_real_connect(). Then, in the mysql_real_connect() call, specify the “no-value” value for each parameter to be read from an option file: * For host, specify a value of NULL or the empty string (""). For user, specify a value of NULL or the empty string. For passwd, specify a value of NULL. (For the password, a value of the empty string in For db, specify a value of NULL or the empty string. For port, specify a value of 0. For unix_socket, specify a value of NULL. If no value is found in an option file for a parameter, its default value is used as Return Values A MYSQL* connection handle if the connection was successful, NULL if the connection Errors * CR_CONN_HOST_ERROR Failed to connect to the MySQL server. CR_CONNECTION_ERROR Failed to connect to the local MySQL server. CR_IPSOCK_ERROR Failed to create an IP socket. CR_OUT_OF_MEMORY Out o |
凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢! |