faq for mysql extension

This commit is contained in:
Marc Delisle
2002-07-21 23:29:07 +00:00
parent 49a3af59ed
commit aab4919565
3 changed files with 22 additions and 2 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
2002-07-21 Marc Delisle <lem9@users.sourceforge.net>
* Documentation.html, libraries/common.lib.php3: added a faq about
mysql extension, and a link to it when the error occurs
2002-07-20 Marc Delisle <lem9@users.sourceforge.net>
* tbl_properties*: missing $sub_part for back links (bug 584069)

View File

@@ -1613,7 +1613,21 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
these files.
</p>
<a name="faqmysql"></a>
<p>
<b>I receive the error 'cannot load MySQL extension, please check
PHP Configuration'.</b>
<br />
To connect to a MySQL server, PHP needs a set of MySQL functions called
&quot;MySQL extension&quot;.
This extension may be part of the PHP server (compiled-in), otherwise
it needs to be loaded dynamically. phpMyAdmin tried to load the extension
but failed.
<br /><br />
Usually, the problem is solved by installing a software package called
&quot;PHP-MySQL&quot; or something similar.
</p>
<a name="faqconfig"></a>
<h3>[Configuration]</h3>

View File

@@ -195,7 +195,9 @@ h1 {font-family: sans-serif; font-size: large; font-weight: bold}
@dl($extension.$suffix);
}
if (!@extension_loaded($extension)) {
echo $strCantLoadMySQL;
echo $strCantLoadMySQL . '<br /> '
. '<a href="Documentation.html#faqmysql">'
. $GLOBALS['strDocu'] . '</a>';
exit();
}
} // end load mysql extension