Running PHP 5.1.2; MySQL installed, but not 'seen'

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

lorikay4
Forum Newbie
Posts: 18
Joined: Fri Jan 05, 2007 6:57 pm

Post by lorikay4 »

Your script now outputs:

Code: Select all

ini: C:\php\php.ini perm: -rw-
-- ini parameters --
extension_dir = c:\php\ext
; extension_dir directive above.
; Be sure to appropriately set the extension_dir directive.
extension=php_mysql.dll
-- parameter test --
c:/php/ext/php_mysql.dll perm: -rw-
c:/php/ext/php_tidy.dll perm: -rw-
-- PATH test --
path: C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\ATI Technologies\ATI Control Panel;C:\Program Files\IDM Computer Solutions\UltraEdit-32;C:\PROGRA~1\SecureFX;C:\mysql\bin;c:\php
C:/WINDOWS/system32/libmysql.dll perm: -no such file-
C:/WINDOWS/libmysql.dll perm: -no such file-
C:/WINDOWS/System32/Wbem/libmysql.dll perm: -no such file-
C:/Program Files/ATI Technologies/ATI Control Panel/libmysql.dll perm: -no such file-
C:/Program Files/IDM Computer Solutions/UltraEdit-32/libmysql.dll perm: -no such file-
C:/PROGRA~1/SecureFX/libmysql.dll perm: -no such file-
C:/mysql/bin/libmysql.dll perm: -rw-
c:/php/libmysql.dll perm: -rw-
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

and

Code: Select all

<?php
if ( function_exists('mysql_connect') ) {
	echo 'should be working now';
}
else {
	echo 'grrr';
}
?


edit:
C:/mysql/bin/libmysql.dll perm: -rw-
c:/php/libmysql.dll perm: -rw-
you can rename c:/php/libmysql.dll to c:/php/libmysql.dll.old
It's probably already using the file provided by your mysql server installation in C:/mysql/bin/libmysql.dll
lorikay4
Forum Newbie
Posts: 18
Joined: Fri Jan 05, 2007 6:57 pm

Post by lorikay4 »

Volka, thank you so much. The mySQL block in the phpinfo() test returns:

mysql
MySQL Support enabled
Active Persistent Links 0
Active Links 0
Client API version 5.0.27

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

And your script says 'should be working now'. So NOW I can start LEARNING how to use this darn thing. Again, many thanks for the patient assistance you all have given me.
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

excellent.
Post Reply