diff options
author | Dries Buytaert <dries@buytaert.net> | 2006-09-06 07:46:25 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2006-09-06 07:46:25 +0000 |
commit | 9a5bfda0e5d4e11498c99f21fef329876d73498a (patch) | |
tree | 5b661a872096ce1b7adc4f801d5c76c25752df4d /includes/install.mysqli.inc | |
parent | 971129417e1dbacbe044c986d4d47739f49b65da (diff) | |
download | brdo-9a5bfda0e5d4e11498c99f21fef329876d73498a.tar.gz brdo-9a5bfda0e5d4e11498c99f21fef329876d73498a.tar.bz2 |
- Patch #82173 by flk: allow users to configure a port number.
Diffstat (limited to 'includes/install.mysqli.inc')
-rw-r--r-- | includes/install.mysqli.inc | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/includes/install.mysqli.inc b/includes/install.mysqli.inc index 087f1e9a4..ae5831f4e 100644 --- a/includes/install.mysqli.inc +++ b/includes/install.mysqli.inc @@ -33,15 +33,10 @@ function drupal_test_mysqli($url, &$success) { $url['host'] = urldecode($url['host']); $url['path'] = urldecode($url['path']); - // Allow for non-standard MySQL port. - if (isset($url['port'])) { - $url['host'] = $url['host'] .':'. $url['port']; - } - $connection = mysqli_init(); @mysqli_real_connect($connection, $url['host'], $url['user'], $url['pass'], substr($url['path'], 1), $url['port'], NULL, MYSQLI_CLIENT_FOUND_ROWS); if (mysqli_connect_errno() >= 2000 || mysqli_connect_errno() == 1045) { - drupal_set_message(st('Failure to connect to your MySQL database server. MySQL reports the following message: %error.<ul><li>Are you sure you have the correct username and password?</li><li>Are you sure that you have typed the correct database hostname?</li><li>Are you sure that the database server is running?</li></ul>For more help, see the <a href="http://drupal.org/node/258">Installation and upgrading handbook</a>. If you are unsure what these terms mean you should probably contact your hosting provider.', array('%error' => mysqli_errno())), 'error'); + drupal_set_message(st('Failure to connect to your MySQL database server. MySQL reports the following message: %error.<ul><li>Are you sure you have the correct username and password?</li><li>Are you sure that you have typed the correct database hostname?</li><li>Are you sure that the database server is running?</li></ul>For more help, see the <a href="http://drupal.org/node/258">Installation and upgrading handbook</a>. If you are unsure what these terms mean you should probably contact your hosting provider.', array('%error' => mysqli_error($connection))), 'error'); return FALSE; } |