Index: includes/database/mysql/install.inc
===================================================================
RCS file: /cvs/drupal/drupal/includes/database/mysql/install.inc,v
retrieving revision 1.7
diff -u -p -r1.7 install.inc
--- includes/database/mysql/install.inc	26 Nov 2010 21:36:43 -0000	1.7
+++ includes/database/mysql/install.inc	3 Dec 2010 18:33:03 -0000
@@ -30,5 +30,21 @@ class DatabaseTasks_mysql extends Databa
   public function minimumVersion() {
     return '5.0.15';
   }
+
+  public function getFormOptions($database) {
+    $form = parent::getFormOptions($database);
+
+    $form['advanced_options']['unix_socket'] = array(
+      '#type' => 'textfield',
+      '#title' => st('Unix socket'),
+      '#default_value' => empty($database['unix_socket']) ? '' : $database['unix_socket'],
+      '#size' => 45,
+      // Paths to sockets are of arbitrary length
+      '#maxlength' => 255,
+      '#description' => st('If your database server is using a non-standard socket, enter it here (e.g. /tmp/mysql.sock)'),
+    );
+
+    return $form;
+  }
 }
 
