From 19619edf43ce63c658ebd179304f95eae56f5f7c Mon Sep 17 00:00:00 2001 From: Brian Wolff Date: Sat, 7 Jul 2018 15:36:10 +0000 Subject: [PATCH] installer: Suggest using 127.0.0.1 in the db not found error message Its a really common error people have where they specify localhost, not realizing that mysql does socket magic for that value, and they need to specify 127.0.0.1 instead. Also remove windows specific language in the help text. Although more of an issue on windows, it is not unheard of to happen on linux if the mysql socket is not configured. Change-Id: Ie8199ab50d37dc2bc43dfafe2e5ef7812e9d832c --- includes/installer/i18n/en.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/installer/i18n/en.json b/includes/installer/i18n/en.json index 429c327f02..c87dcba77e 100644 --- a/includes/installer/i18n/en.json +++ b/includes/installer/i18n/en.json @@ -78,7 +78,7 @@ "config-using-32bit": "Warning: your system appears to be running with 32-bit integers. This is [https://www.mediawiki.org/wiki/Special:MyLanguage/Manual:32-bit not advised].", "config-db-type": "Database type:", "config-db-host": "Database host:", - "config-db-host-help": "If your database server is on different server, enter the host name or IP address here.\n\nIf you are using shared web hosting, your hosting provider should give you the correct host name in their documentation.\n\nIf you are installing on a Windows server and using MySQL, using \"localhost\" may not work for the server name. If it does not, try \"127.0.0.1\" for the local IP address.\n\nIf you are using PostgreSQL, leave this field blank to connect via a Unix socket.", + "config-db-host-help": "If your database server is on different server, enter the host name or IP address here.\n\nIf you are using shared web hosting, your hosting provider should give you the correct host name in their documentation.\n\nIf you using MySQL, using \"localhost\" may not work for the server name. If it does not, try \"127.0.0.1\" for the local IP address.\n\nIf you are using PostgreSQL, leave this field blank to connect via a Unix socket.", "config-db-host-oracle": "Database TNS:", "config-db-host-oracle-help": "Enter a valid [http://download.oracle.com/docs/cd/B28359_01/network.111/b28317/tnsnames.htm Local Connect Name]; a tnsnames.ora file must be visible to this installation.
If you are using client libraries 10g or newer you can also use the [http://download.oracle.com/docs/cd/E11882_01/network.112/e10836/naming.htm Easy Connect] naming method.", "config-db-wiki-settings": "Identify this wiki", @@ -129,7 +129,7 @@ "config-invalid-db-server-oracle": "Invalid database TNS \"$1\".\nUse either \"TNS Name\" or an \"Easy Connect\" string ([http://docs.oracle.com/cd/E11882_01/network.112/e10836/naming.htm Oracle Naming Methods]).", "config-invalid-db-name": "Invalid database name \"$1\".\nUse only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_) and hyphens (-).", "config-invalid-db-prefix": "Invalid database prefix \"$1\".\nUse only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_) and hyphens (-).", - "config-connection-error": "$1.\n\nCheck the host, username and password and try again.", + "config-connection-error": "$1.\n\nCheck the host, username and password and try again. If using \"localhost\" as the database host, try using \"127.0.0.1\" instead (or vice versa).", "config-invalid-schema": "Invalid schema for MediaWiki \"$1\".\nUse only ASCII letters (a-z, A-Z), numbers (0-9) and underscores (_).", "config-db-sys-create-oracle": "Installer only supports using a SYSDBA account for creating a new account.", "config-db-sys-user-exists-oracle": "User account \"$1\" already exists. SYSDBA can only be used for creating of a new account!", -- 2.20.1