由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Database版 - mysql C API
相关主题
MySQL: cannot connect问个问题: Can't connect to MySQL server on 'dbhost' (10061) ( 2003 )
mysql 一问急问一个数据库的问题
求救:为什么Run mysql Under Win98时出错??mac os x 10.6 下 使用mySQL 一问 (转载)
configuration about mysql!!!本地spring,网络mysql,必须port forwarding吗? (转载)
Problem Running MySql on W2K求救,升级mysql后table not exist
HELP!!!Connect to MySQL in JSPMysql无法远程连接,求助
mysql question请问mysql 里如何创建超宽表
anonymous login in mysql?[Mysql] how to return NULL count in group by query (转载)
相关话题的讨论汇总
话题: mysql话题: null话题: database话题: connect话题: root
进入Database版参与讨论
1 (共1页)
a*******s
发帖数: 324
1
hello,
suppose the local hostname="pluto". There are two users(root,someone) with all
the privileges.
To connect to the database, for root.
mysql_real_connect(mysql,"pluto","root","password","database",0,NULL,0)
mysql_real_connect(mysql,"localhost","root","password","database",0,NULL,0)
Both are correct.
For someone(not root)
mysql_real_connect(mysql,"localhost","someone","password","database",0,NULL,0)
it is correct.
mysql_real_connect(mysql,"pluto","someone","password","database",0,NULL,0)
it
o*h
发帖数: 16
2
list all records in table user of database mysql, you can know it.

【在 a*******s 的大作中提到】
: hello,
: suppose the local hostname="pluto". There are two users(root,someone) with all
: the privileges.
: To connect to the database, for root.
: mysql_real_connect(mysql,"pluto","root","password","database",0,NULL,0)
: mysql_real_connect(mysql,"localhost","root","password","database",0,NULL,0)
: Both are correct.
: For someone(not root)
: mysql_real_connect(mysql,"localhost","someone","password","database",0,NULL,0)
: it is correct.

1 (共1页)
进入Database版参与讨论
相关主题
[Mysql] how to return NULL count in group by query (转载)Problem Running MySql on W2K
mysql的问题HELP!!!Connect to MySQL in JSP
MySQL table either insert or drop/truncate table running forevermysql question
MySQL 的一个问题求教anonymous login in mysql?
MySQL: cannot connect问个问题: Can't connect to MySQL server on 'dbhost' (10061) ( 2003 )
mysql 一问急问一个数据库的问题
求救:为什么Run mysql Under Win98时出错??mac os x 10.6 下 使用mySQL 一问 (转载)
configuration about mysql!!!本地spring,网络mysql,必须port forwarding吗? (转载)
相关话题的讨论汇总
话题: mysql话题: null话题: database话题: connect话题: root