Back to Forum Re New

Mysql 客户端与服务器端的区别

Mysql 客户端与服务器端的区别



CODE:[Copy to clipboard]

--------------------------------------------------------------------------
Client Version

<?php
printf (\"MySQL client info: %sn\", mysql_get_client_info());
printf (\"<br>\");
?>

Host Information

<?php
mysql_connect(\"localhost\", \"root\", \"yuguanglou\") or
die(\"Could not connect: \" . mysql_error());
printf (\"MySQL host info: %sn\", mysql_get_host_info());
printf (\"<br>\");
?>

Protocol Information

<?php
mysql_connect(\"localhost\", \"root\", \"yuguanglou\") or
die(\"Could not connect: \" . mysql_error());
printf (\"MySQL protocol version: %sn\", mysql_get_proto_info());
printf (\"<br>\");
?>

Server Information

<?php
mysql_connect(\"localhost\", \"root\", \"yuguanglou\") or
die(\"Could not connect: \" . mysql_error());
printf (\"MySQL server version: %sn\", mysql_get_server_info());
printf (\"<br>\");
?>

---------------------------------------------------------------------------------------------------------------

显示:

Client Version MySQL client info: 3.23.49 [/COLOR]
Host Information MySQL host info: localhost via TCP/IP
Protocol Information MySQL protocol version: 10
Server Information MySQL server version: 4.0.14-nt [/COLOR]


为什么版本不一样呢?有何区别啊?
昵称: yuguanglou时间: 2004-5-7 10:06 AM

--------------------------------------------------------------------------------

clent是客户端接口函数的版本吧?
昵称: fwolf时间: 2004-5-7 10:09 AM

--------------------------------------------------------------------------------

Client更新和Server更新不是同步的啊,没必要版本一样
即使是一个MySQL软件中的
昵称: hackfan时间: 2004-5-7 07:42 PM
EQ中文世纪地图集地址:
www.ceqmap.com
Back to Forum