From aab4919565c1ee59719983edfe6c61a8bfe1ce89 Mon Sep 17 00:00:00 2001
From: Marc Delisle
Date: Sun, 21 Jul 2002 23:29:07 +0000
Subject: [PATCH] faq for mysql extension
---
ChangeLog | 4 ++++
Documentation.html | 16 +++++++++++++++-
libraries/common.lib.php3 | 4 +++-
3 files changed, 22 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index c3a5615ed..9f3cf65f9 100755
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$
$Source$
+2002-07-21 Marc Delisle
+ * 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
* tbl_properties*: missing $sub_part for back links (bug 584069)
diff --git a/Documentation.html b/Documentation.html
index 3e2cf2ced..dd3f61287 100755
--- a/Documentation.html
+++ b/Documentation.html
@@ -1613,7 +1613,21 @@ $cfg['PmaAbsoluteUri'] = (!empty($_SERVER['HTTPS']) ? 'https' : 'http') . '://'
these files.
-
+
+
+ I receive the error 'cannot load MySQL extension, please check
+ PHP Configuration'.
+
+ To connect to a MySQL server, PHP needs a set of MySQL functions called
+ "MySQL extension".
+ 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.
+
+ Usually, the problem is solved by installing a software package called
+ "PHP-MySQL" or something similar.
+
+
[Configuration]
diff --git a/libraries/common.lib.php3 b/libraries/common.lib.php3
index 8172768e7..0672e93f8 100644
--- a/libraries/common.lib.php3
+++ b/libraries/common.lib.php3
@@ -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 . '
'
+ . ''
+ . $GLOBALS['strDocu'] . '';
exit();
}
} // end load mysql extension