I've installed Apache 2, PHP, MySQL, and PhpmyAdmin. When I try to run phpMyAdmin, I get the following error:
Cannot load mysql extension. Please check your PHP configuration. - Documentation
The problem is likely that you didn't install a PhpMyAdmin configuration file. Go to the server root, then the directory for PhpMyAdmin. Copy the default configuration file 'config.sample.php.inc' to 'config.php.inc'.
$ cp config.sample.php.inc config.php.inc
Add the following two lines after $i++
$cfg['Servers'][$i]['user'] = 'db-user-name';
$cfg['Servers'][$i]['password'] = 'db-user-name-password';
And while there, enter a valid blowfish key. Any old sentence of text will do.
Access phpmyadmin from your browser again, and you should be all set
No comments:
Post a Comment