[BUGFIX] Message about missing db credentials is misleading
authorChristopher <chrissitopher@gmx.de>
Sat, 27 Aug 2011 16:24:11 +0000 (18:24 +0200)
committerJigal van Hemert <jigal@xs4all.nl>
Sun, 28 Aug 2011 10:45:26 +0000 (12:45 +0200)
If persistent connections are not allowed by MySQL the error message "Can only
select database if username/password/host is correctly set first." is shown.
Add an explanation that $TYPO3_CONF_VARS['SYS']['no_pconnect'] must be set 0
if persistent connections are not allowed.

Change-Id: I28f373c1e771f00d1584eff5080bfa51cf48ed96
Fixes: #29245
Releases: 4.6
Reviewed-on: http://review.typo3.org/4633
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
typo3/sysext/install/mod/class.tx_install.php [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index a8a4199..3c6e6d2
@@ -3273,8 +3273,9 @@ REMOTE_ADDR was '".t3lib_div::getIndpEnv('REMOTE_ADDR')."' (".t3lib_div::getIndp
                                        $databaseNotAvailableMarkers = array(
                                                'typo3Db' => htmlspecialchars(TYPO3_db),
                                                'labelNoDatabase' => '
-                                                       (Can only select database if username/password/host
-                                                       is correctly set first)
+                                                       (Database cannot be selected. Make sure that username, password and host
+                                                       are set correctly. If MySQL does not allow persistent connections,
+                                                       check that $TYPO3_CONF_VARS[\'SYS\'][\'no_pconnect\'] is set to "1".)
                                                '
                                        );
                                                // Fill the markers in the subpart