mysql中的mysql_real_connect连接参数设置
日期:2007年4月6日 作者: 查看:[大字体 中字体 小字体]-
*
The passwd parameter contains the password for user. If passwd is NULL, only entries
in the user table for the user that have a blank (empty) password field are checked for a
match. This allows the database administrator to set up the MySQL privilege system in
such a way that users get different privileges depending on whether they have specified
a password.Note: Do not attempt to encrypt the password before calling mysql_real_connect();
password encryption is handled automatically by the client API.
*db is the database name. If db is not NULL, the connection sets the default database
to this value.
*If port is not 0, the value is used as the port number for the TCP/IP connection. Note
that the host parameter determines the type of the connection.
*If unix_socket is not NULL, the string specifies the socket or named pipe that should
be used. Note that the host parameter determines the type of the connection.
*The value of client_flag is usually 0, but can be set to a combination of the following
flags to enable certain features://上面描述了五个参数的主要取值,MYSQL *为mysql_init函数返回的指针,host为null或 // localhost时链接的是本地的计算机,当mysql默认安装在unix(或类unix)系统中,root账户是没// 有密码的,因此用户名使用root,密码为null,当db为空的时候,函数链接到默认数据库,在进行 // mysql安装时会存在默认的test数据库,因此此处可以使用test数据库名称,port端口为0,使用 // unix连接方式,unix_socket为null时,表明不使用socket或管道机制,最后一个参数经常设置为0
Flag Name Flag Description
- 上一页 [1] [2] [3] [4] [5] [6] 下一页
-
- mysql中的mysql_real_connect连接参数设置 相关文章:
- ·QQ龙珠连锁之20连以上的创造方法
- ·.Net中如何连接到ODBC数据源
- ·连连看绝望玩法的11点个人看法
- ·连连看中级进阶技术技巧的提高
- ·姐,幸福下去,连我的份一起
- ·TOMCAT的内存和连接数配置详解
- ·Windows Vista与XP实现局域网连通
- ·实现Win vista与XP局域网互连互通
- ·PHP连接远程MYSQL和MYSQL5.1中文乱码处理方法
- ·实战:Vista与XP实现局域网连通
- mysql中的mysql_real_connect连接参数设置 相关软件
- ·阿达连连看 2007
- ·【连环画】铁道游击队 01 血染洋行(沪美版)
- ·快乐成语连连看
- ·“天亿”连珠王
- ·QQ 连连看助手
- ·醒狮连连看
- ·《连连看》豪华兼容版
- ·《连连看》v4.1 简体中文精装版
- ·《英雄连》1.70-1.71中文版升级补丁
- ·《连连看》v4.1 简体中文完全版
- 特别声明:本站除部分特别声明禁止转载的专稿外的其他文章可以自由转载,但请务必注明出处和原始作
- 者.文章版权归文章原始作者所有.对于被本站转载文章的个人和网站,我们表示深深的谢意。如果本站转
- 载的文章有版权问题请联系编辑人员,我们尽快予以更正. 转载请注明来源:http://www.hackhome.com
精品推荐
热点TOP10
- ·MySQL数据库学习手册之从MySQL得到最大的性能
- ·mysql中的mysql_real_connect连接参数设置
- ·讲解Ubuntu下MySQL数据库安装后初步设置
- ·详细介绍优化mysql性能的十个参数
- ·MySQL管理工具SQLyog最新6.1下载
- ·怎样测试 MySQL安装是否成功?
- ·MySQL中LOAD DATA LOCAL安全问题
- ·一个简单的MySQL备份恢复数据指令
- ·修改MYSQL数据库,数据表,字段的编码(解决JSP乱码)
- ·让Windows在IIS支持PHP和MySQL
- ·快速掌握 MySQL数据库中触发器的应用
- ·数据从MySQL迁移到 Oracle的注意事项
- ·mysql导入数据库文件最大限制的修改方法
- ·SQL Server 2008 几项新特性概述
- ·MySQL安装的故障诊断与排除(Windows环境)
- ·快速掌握 SQL Server 的任务调度
- ·PHP5对Mysql5的任意数据库表的管理代码示例
- ·怎样从Windows命令行启动MySQL?
- ·轻松掌握MySQL中实施info()函数
- ·了解MySQL数据库中的结果字符串
特别推荐
- ·修改MySQL的默认密码
- ·初学MYSQL应知道:Mysql参数优化
- ·数据库安全应用 使用MySQL的23个注意事项
- ·入门:MYSQL基础
- ·轻松描述Windows上安装多个Mysql的步骤
- ·安装与卸载MySQL数据库系统服务的常见问题
- ·Mysql 安全注意事项
- ·初学MySql5 所应了解的知识和常见问题
- ·MySQL数据库学习手册之安装MySQL
- ·无法远程登入MySQL数据库的三种解决办法
- ·讲解Ubuntu下MySQL数据库安装后初步设置
- ·MySQL数据库管理员迅速回答常见问题汇总
- ·详细介绍优化mysql性能的十个参数
- ·MySQL中执行SQL语句时的两个注意点
- ·帮助你如何迅速优化你MySQL数据库性能
- ·PHP+MYSQL建设网站程序需要注意两点
- ·资深专家手把手教你安装MYSQL数据库
- ·实战经验:PHP+MySQL数据库论坛简易通
- ·MySQL的启动方法(windows 平台)
- ·修改MYSQL数据库,数据表,字段的编码(解决JSP乱码)
