This will make you apply HeadOn to your forehead.
When making a connection with mysql and php4 one of the configurations is to uncomment
the extension in the php4.ini file.
However, the php extension has a typo in this file.
/etc/php4/apache2/php.ini
Under the Dynamic Extensions section it reads:
The first extension for UNIX reads:Code:;;;;;;;;;;;;;;;;;;;;;; ; Dynamic Extensions ; ;;;;;;;;;;;;;;;;;;;;;; ; ; If you wish to have an extension loaded automatically, use the following ; syntax: ; ; extension=modulename.extension ; ; For example, on Windows: ; ; extension=msql.dll ; ; ... or under UNIX: ; ; extension=msql.so ; ; Note that it should be the name of the module only; no directory information ; needs to go here. Specify the location of the extension with the ; extension_dir directive above. ; ; Example lines: ; ;extension=mysql.so ;extension=gd.so
; extension=msql.so
It should read
; extension=mysql.so [ It's missing a y ]
The second one is ok
;extension=mysql.so
Either uncomment the second one or correct and uncomment the first for mysql connection to php.
So far I've found this typo also in other Knoppix versions and other php.ini's.
The Windows geekers ironically have it worse they have to deal with msql.
note: Don't make any white space between the equals sign. Also PHP code has something similar too.
The other config is to uncomment the 'extension_dir ='
then add '/usr/lib/php4/extensions'
Save and exit and make a extensions directory
# mkdir /usr/lib/php4/extensions
locate mysql.so then copy the path of mysql.so to /usr/lib/php4/extensions/
restart apache2
# apache2 -k restart or apache2ctl restart
# /etc/init.d/mysql start
<Enter>
# mysql -u root
---
Addendum:
The extension msql.so is from mini SQL(mSQL).
However, use mysql.so and MySQL
---
Addendum2:
Since Oracle is gobbling up things and CD versions after 501 don't have Mysql-server it might be wise to download it and save it somewhere.
OEM Dell 65W USB-C Type C HA65NM170 Laptop Ac Power Adapter Charger XPS Latitude
$19.99
OEM 130W USB-C Type-C Charger for Dell XPS 15 9500 9570 9575 17 9700 DA130PM170
$35.88
Genuine 45W Power Adapter Charger for Dell DA45NM140 0KXTTW 4.5*3.0mm OEM
$16.99
NEW Dell OEM Precision 7550 7750 7560 7760 6-Cell 95Wh Laptop Battery - PKWVM
$67.99
OEM Dell Inspiron 11 13 14 15 17 3000 5000 7000 AC Adapter Charger 65W 4.5mm Tip
$10.99
Dell Original OEM 45W 19.5V AC Adapter Charger 070VTC 0KXTTW 00285K 0YTFJC 4.5mm
$10.94
NEW OEM 45W Adapter For Dell XPS 13 9333 9343 9350 L321X L322X Charger LA45NM131
$12.88
OEM DELL 65W AC Adapter Charger 7.4mm Latitude 7490 7480 E7440 E7450 E7470 E7270
$11.88
Genuine OEM 65W Dell PA-12 AC Adapter Charger 928G4 06TM1C LA65NS2-01 7.4*5.0mm
$14.99
New Original OEM Genuine DELL 65W Small Tip 19.5V AC Charger Power Cord Adapter
$25.87