The MySQL module isn't running or you would see it in your phpinfo.
Make sure: extension=php_mysql.dll
doesn't have a semicolon in front of it. Make sure you restart your webserver
if you make any changes.
Also in your php.ini file:
include_path .;C:\php5\pear .;C:\php5\pear
you dont need this twice, I would just put the c:\php5; and thats it.
The MySQL table in the phpinfo would look something like this:
mysql
MySQL Support enabled
Active Persistent Links 0
Active Links0
Client API version 4.1.7
Directive Local Value Master Value
mysql.allow_persistent On On
mysql.connect_timeout 60 60
mysql.default_host localhost localhost
mysql.default_password no valueno value
mysql.default_port no valueno value
mysql.default_socketno valueno value
mysql.default_user no valueno value
mysql.max_links Unlimited Unlimited
mysql.max_persistentUnlimited Unlimited
mysql.trace_modeOff Off
Hi,
I have a php_mysql.dll file in my PHP directory at D:\PHP5\ext. I've tried
copying this to C:\Windows\SYSTEM but this make no difference. There is no
reference to SQL when running phpinfo() - the output is pasted below.
As per the documentation, I took php.ini-recommend and copied it into the
C:\Window directory. I've attached it. My understanding is that mysql is
already built in and that there's no need to declare mysql as an extension.
Any ideas?.
Regards,
Dave
PHP Version 5.0.2
System Windows 9x VENUS 4.90
Build Date Sep 24 2004 01:24:24
Configure Command cscript /nologo configure.js "--enable-snapshot-build"
"--with-gd=shared"
Server API Apache 2.0 Handler
Virtual Directory Support enabled
Configuration File (php.ini) Path C:\WINDOWS\php.ini
PHP API 20031224
PHP Extension 20040412
Zend Extension 220040412
Debug Build no
Thread Safety enabled
IPv6 Support enabled
Registered PHP Streams php, file, http, ftp, compress.zlib
Registered Stream Socket Transports tcp, udp
This program makes use of the Zend Scripting Language Engine:
Zend Engine v2.0.2, Copyright (c) 1998-2004 Zend Technologies
PHP Credits
Configuration
PHP Core
Directive Local Value Master Value
allow_call_time_pass_reference Off Off
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_globals_jit On On
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 Off Off
display_startup_errors Off Off
doc_root d:\Program Files\Apache Group\Apache2\htdocs d:\Program Files\Apache
Group\Apache2\htdocs
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 ./ ./
file_uploads On On
highlight.bg #FF #FF
highlight.comment #FF8000 #FF8000
highlight.default #BB #BB
highlight.html #00 #00
highlight.keyword #007700 #007700
highlight.string #DD #DD
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:\php5\pear .;C:\php5\pear
log_errors On On
log_errors_max_len 1024 1024
magic_quotes_gpc Off Off
magic_quotes_runtime Off Off
magic_quotes_sybase Off Off
mail.force_extra_parameters no value no value
max_execution_time 30 30
max_input_time 60 60
open_basedir no value no value
output_buffering 4096 4096
output_handler no value no value
post_max_size 8M 8M
precision 14 14
register_argc_argv Off Off
register_globals Off Off
register_long_arrays Off Off
report_memleaks On On
report_zend_debug 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 GPCS GPCS
xmlrpc_error_number 0 0
xmlrpc_errors Off Off
y2k_compliance On On
zend.ze1_compatibility_mode Off Off
apache2handler
Apache Version Apache/2.0.52 (Win32) PHP/5.0.2
Apache API Version 20020903
Server Administrator [EMAIL PROTECTED]