phpinfo():
PHP Version 4.3.9 System  Windows NT XERA 5.1 build 2600  
Build Date  Sep 21 2004 14:03:10  
Server API  Apache 2.0 Handler  
Virtual Directory Support  enabled  
Configuration File (php.ini) Path  C:\WINDOWS\php.ini  
PHP API  20020918  
PHP Extension  20020429  
Zend Extension  20021010  
Debug Build  no  
Thread Safety  enabled  
Registered PHP Streams  php, http, ftp, compress.zlib   This program makes use of the Zend Scripting Language Engine:
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies  
--------------------------------------------------------------------------------PHP Credits--------------------------------------------------------------------------------Configuration
PHP Core
Directive Local Value Master Value 
allow_call_time_pass_reference On On 
allow_url_fopen On On 
always_populate_raw_post_data Off Off 
arg_separator.input & & 
arg_separator.output & & 
asp_tags Off Off 
auto_append_file no value no value 
auto_prepend_file no value no value 
browscap no value no value 
default_charset no value no value 
default_mimetype text/html text/html 
define_syslog_variables Off Off 
disable_classes no value no value 
disable_functions no value no value 
display_errors On On 
display_startup_errors Off Off 
doc_root no value no value 
docref_ext no value no value 
docref_root no value no value 
enable_dl On On 
error_append_string no value no value 
error_log no value no value 
error_prepend_string no value no value 
error_reporting 2047 2047 
expose_php On On 
extension_dir d:/php/extensions/ d:/php/extensions/ 
file_uploads On On 
gpc_order GPC GPC 
highlight.bg #FFFFFF #FFFFFF 
highlight.comment #FF8000 #FF8000 
highlight.default #0000BB #0000BB 
highlight.html #000000 #000000 
highlight.keyword #007700 #007700 
highlight.string #DD0000 #DD0000 
html_errors On On 
ignore_repeated_errors Off Off 
ignore_repeated_source Off Off 
ignore_user_abort Off Off 
implicit_flush Off Off 
include_path .;c:\php4\pear .;c:\php4\pear 
log_errors Off Off 
log_errors_max_len 1024 1024 
magic_quotes_gpc On On 
magic_quotes_runtime Off Off 
magic_quotes_sybase Off Off 
max_execution_time 30 30 
max_input_time 60 60 
open_basedir no value no value 
output_buffering no value no value 
output_handler no value no value 
post_max_size 8M 8M 
precision 12 12 
register_argc_argv On On 
register_globals Off Off 
report_memleaks On On 
safe_mode Off Off 
safe_mode_exec_dir no value no value 
safe_mode_gid Off Off 
safe_mode_include_dir no value no value 
sendmail_from no value no value 
sendmail_path no value no value 
serialize_precision 100 100 
short_open_tag On On 
SMTP localhost localhost 
smtp_port 25 25 
sql.safe_mode Off Off 
track_errors Off Off 
unserialize_callback_func no value no value 
upload_max_filesize 2M 2M 
upload_tmp_dir no value no value 
user_dir no value no value 
variables_order EGPCS EGPCS 
xmlrpc_error_number 0 0 
xmlrpc_errors Off Off 
y2k_compliance On On 
apache2handler
Apache Version  Apache/2.0.52 (Win32) PHP/4.3.9  
Apache API Version  20020903  
Server Administrator  [email protected]  
Hostname:Port  test.com:80  
Max Requests  Per Child: 0 - Keep Alive: on - Max Per Connection: 100  
Timeouts  Connection: 300 - Keep-Alive: 0  
Virtual Server  No  
Server Root  D:/application/Apache Group/Apache2  
Loaded Modules  core mod_win32 mpm_winnt http_core mod_so mod_access mod_actions mod_alias mod_asis mod_auth mod_autoindex mod_cgi mod_dir mod_env mod_imap mod_include mod_isapi mod_log_config mod_mime mod_negotiation mod_setenvif mod_userdir sapi_apache2  Directive Local Value Master Value 
engine 1 1 
last_modified 0 0 
xbithack 0 0 
Apache Environment
Variable Value 
HTTP_ACCEPT  */*  
HTTP_ACCEPT_LANGUAGE  zh-cn  
HTTP_ACCEPT_ENCODING  gzip, deflate  
HTTP_USER_AGENT  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)  
HTTP_HOST  localhost  
HTTP_CONNECTION  Keep-Alive  
HTTP_COOKIE  shangcheng=  
PATH  D:\Program Files\Real\RealProducer Basic 10;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;D:\Program Files\Symantec\pcAnywhere\;D:\Program Files\Support Tools\;C:\Program Files\Microsoft SQL Server\80\Tools\BINN  
SystemRoot  C:\WINDOWS  
COMSPEC  C:\WINDOWS\system32\cmd.exe  
PATHEXT  .COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH  
WINDIR  C:\WINDOWS  
SERVER_SIGNATURE  <address>Apache/2.0.52 (Win32) PHP/4.3.9 Server at localhost Port 80</address>  
SERVER_SOFTWARE  Apache/2.0.52 (Win32) PHP/4.3.9  
SERVER_NAME  localhost  
SERVER_ADDR  127.0.0.1  
SERVER_PORT  80  
REMOTE_ADDR  127.0.0.1  
DOCUMENT_ROOT  E:/wwwroot  
SERVER_ADMIN  [email protected]  
SCRIPT_FILENAME  E:/wwwroot/phpinfo.php  
REMOTE_PORT  4195  
GATEWAY_INTERFACE  CGI/1.1  
SERVER_PROTOCOL  HTTP/1.1  
REQUEST_METHOD  GET  
QUERY_STRING  no value  
REQUEST_URI  /phpinfo.php  
SCRIPT_NAME  /phpinfo.php  
HTTP Headers Information
HTTP Request Headers 
HTTP Request  GET /phpinfo.php HTTP/1.1  
Accept  */*  
Accept-Language  zh-cn  
Accept-Encoding  gzip, deflate  
User-Agent  Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322)  
Host  localhost  
Connection  Keep-Alive  
Cookie  shangcheng=  
HTTP Response Headers 
X-Powered-By  PHP/4.3.9  
Keep-Alive  timeout=15, max=100  
Connection  Keep-Alive  
Transfer-Encoding  chunked  
Content-Type  text/html; charset=gb2312  
bcmath
BCMath support  enabled  
calendar
Calendar support  enabled  
com
Directive Local Value Master Value 
com.allow_dcom Off Off 
com.autoregister_casesensitive On On 
com.autoregister_typelib Off Off 
com.autoregister_verbose Off Off 
com.typelib_file no value no value 
ctype
ctype functions  enabled  
ftp
FTP support  enabled  
gd
GD Support  enabled  
GD Version  bundled (2.0.28 compatible)  
FreeType Support  enabled  
FreeType Linkage  with freetype  
GIF Read Support  enabled  
GIF Create Support  enabled  
JPG Support  enabled  
PNG Support  enabled  
WBMP Support  enabled  
XBM Support  enabled  
mysql
MySQL Support enabled 
Active Persistent Links  0  
Active Links  0  
Client API version  3.23.49  Directive Local Value Master Value 
mysql.allow_persistent On On 
mysql.connect_timeout 60 60 
mysql.default_host no value no value 
mysql.default_password no value no value 
mysql.default_port no value no value 
mysql.default_socket no value no value 
mysql.default_user no value no value 
mysql.max_links Unlimited Unlimited 
mysql.max_persistent Unlimited Unlimited 
mysql.trace_mode Off Off 
odbc
ODBC Support enabled 
Active Persistent Links  0  
Active Links  0  
ODBC library  Win32  Directive Local Value Master Value 
odbc.allow_persistent On On 
odbc.check_persistent On On 
odbc.default_db no value no value 
odbc.default_pw no value no value 
odbc.default_user no value no value 
odbc.defaultbinmode return as is return as is 
odbc.defaultlrl return up to 4096 bytes return up to 4096 bytes 
odbc.max_links Unlimited Unlimited 
odbc.max_persistent Unlimited Unlimited 
overload
User-Space Object Overloading Support  enabled  
pcre
PCRE (Perl Compatible Regular Expressions) Support  enabled  
PCRE Library Version  4.5 01-December-2003  ......

解决方案 »

  1.   

    你用的是mysql5.x吧?他说你的客户端版本低了
      

  2.   

    换成php5.0.2,用mysqli_connect试试吧
      

  3.   

    tp://community.csdn.net/Expert/topic/3505/3505320.xml?temp=.1340601
      

  4.   

    我的是PHP 4.3.9
    install.txt和phpinfo说已经内置了mysql扩展了
      

  5.   

    使用PHPMYADMIN时报错:
    Client does not support authentication protocol requested
    by server; consider upgrading MySQL client官方的说法是MySQL 4.1 and up uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older clients. .....
    如果你升级mysql到4.1以上版本后遇到以上问题,请先确定你的mysql client 是4.1或者更高版本.(WINDOWS下有问题你就直接跳到下面看解决方法了,因为MYSQL 在WINDOWS是client和server一起装上了的)请使用以下两种方法之一其一:mysql> SET PASSWORD FOR
    -> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');其二:mysql> UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd')
    -> WHERE Host = 'some_host' AND User = 'some_user';
    mysql> FLUSH PRIVILEGES;
    官方连接:http://dev.mysql.com/doc/mysql/en/Old_client.html
      

  6.   

    不是PHP的问题,是MYSQL的版本导致的.
    我给出的链接里面有解决方法