/[drupal]/contributions/modules/provision/db_server/install.provision.inc
ViewVC logotype

Contents of /contributions/modules/provision/db_server/install.provision.inc

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.10 - (show annotations) (download) (as text)
Tue May 12 21:23:53 2009 UTC (6 months, 2 weeks ago) by anarcat
Branch: MAIN
CVS Tags: DRUPAL-6--0-3, DRUPAL-6--0-2, DRUPAL-6--0-2-RC1, DRUPAL-6--0-4-ALPHA1, DRUPAL-6--0-2-BETA1, DRUPAL-6--0-4-ALPHA3, DRUPAL-6--0-4-ALPHA2, DRUPAL-6--0-3-RC4, DRUPAL-6--0-3-RC2, DRUPAL-6--0-3-RC3, DRUPAL-6--0-3-RC1, HEAD
Changes since 1.9: +2 -14 lines
File MIME type: text/x-php
Refactor the algorigthms to guess the proper 'host' part of the MySQL
user names

Completely remove the user when revoking his privileges.

Closes: #455954
1 <?php
2
3 function drush_provision_mysql_provision_install_validate() {
4 provision_db_connect();
5 }
6
7 function drush_provision_mysql_pre_provision_install($url = NULL) {
8 $db_type = drush_set_option('db_type', drush_get_option('db_type'), 'site');
9 $db_host = drush_set_option('db_host', drush_get_option('db_host'), 'site');
10 $db_passwd = drush_set_option('db_passwd', provision_password(), 'site');
11 $db_name = drush_set_option('db_name', _provision_mysql_suggest_db_name($url), 'site');
12 $db_user = drush_set_option('db_user', $db_name, 'site');
13
14 _provision_mysql_new_site_db($db_name, $db_user, $db_passwd);
15 }
16
17 function drush_provision_mysql_pre_provision_install_rollback($url = NULL) {
18 _provision_mysql_destroy_site_db(drush_get_option('db_name'), drush_get_option('db_user'), drush_get_option('db_passwd'));
19 }

  ViewVC Help
Powered by ViewVC 1.1.2