Macintosh:~ seandunaway$ cd ~/Sites/ Macintosh:Sites seandunaway$ drush dl Project drupal (7.4) downloaded to /Users/seandunaway/Sites/drupal-7.4. [success] Project drupal contains: [success] - 3 profiles: testing, standard, minimal - 4 themes: stark, seven, garland, bartik - 47 modules: drupal_system_listing_incompatible_test, drupal_system_listing_compatible_test, user, update, trigger, translation, tracker, toolbar, taxonomy, system, syslog, statistics, simpletest, shortcut, search, rdf, profile, poll, php, path, overlay, openid, node, menu, locale, image, help, forum, filter, file, field_ui, text, options, number, list, field_sql_storage, field, dblog, dashboard, contextual, contact, comment, color, book, blog, block, aggregator Macintosh:Sites seandunaway$ mv drupal-7.4 xjm Macintosh:Sites seandunaway$ cd xjm Macintosh:xjm seandunaway$ mysql -uroot -proot Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 680 Server version: 5.5.9 Source distribution Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> create database xjm; Query OK, 1 row affected (0.08 sec) mysql> create user 'xjm'@'localhost'; Query OK, 0 rows affected (0.01 sec) mysql> grant all on xjm.* to 'xjm'@'localhost'; Query OK, 0 rows affected (0.01 sec) mysql> show tables in xjm; Empty set (0.00 sec) mysql> quit Bye Macintosh:xjm seandunaway$ lynx localhost:8888/xjm Exiting via interrupt: 2 Macintosh:xjm seandunaway$ mysql -uroot -proot Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 702 Server version: 5.5.9 Source distribution Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> show tables in xjm; +-----------------------------+ | Tables_in_xjm | +-----------------------------+ | actions | | authmap | | batch | | block | | block_custom | | block_node_type | | block_role | | blocked_ips | | cache | | cache_block | | cache_bootstrap | | cache_field | | cache_filter | | cache_form | | cache_image | | cache_menu | | cache_page | | cache_path | | cache_update | | comment | | date_format_locale | | date_format_type | | date_formats | | field_config | | field_config_instance | | field_data_body | | field_data_comment_body | | field_data_field_image | | field_data_field_tags | | field_revision_body | | field_revision_comment_body | | field_revision_field_image | | field_revision_field_tags | | file_managed | | file_usage | | filter | | filter_format | | flood | | history | | image_effects | | image_styles | | menu_custom | | menu_links | | menu_router | | node | | node_access | | node_comment_statistics | | node_revision | | node_type | | queue | | rdf_mapping | | registry | | registry_file | | role | | role_permission | | search_dataset | | search_index | | search_node_links | | search_total | | semaphore | | sequences | | sessions | | shortcut_set | | shortcut_set_users | | system | | taxonomy_index | | taxonomy_term_data | | taxonomy_term_hierarchy | | taxonomy_vocabulary | | url_alias | | users | | users_roles | | variable | | watchdog | +-----------------------------+ 74 rows in set (0.01 sec) mysql> quit Bye Macintosh:xjm seandunaway$ mysqldump -uroot -proot xjm >xjm.mysql Macintosh:xjm seandunaway$ cd sites/all/modules/ Macintosh:modules seandunaway$ wget http://drupal.org/files/issues/mymodule.tar__1.gz --04:17:03-- http://drupal.org/files/issues/mymodule.tar__1.gz => `mymodule.tar__1.gz' Resolving drupal.org... 140.211.166.6, 140.211.166.21 Connecting to drupal.org|140.211.166.6|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 474 [application/x-gzip] 100%[============================================================================>] 474 --.--K/s 04:17:03 (8.22 MB/s) - `mymodule.tar__1.gz' saved [474/474] Macintosh:modules seandunaway$ tar zxvf *gz x mymodule/ x mymodule/mymodule.info x mymodule/mymodule.module x mymodule/mymodule.test Macintosh:modules seandunaway$ drush en simpletest mymodule --yes The following extensions will be enabled: simpletest, mymodule Do you really want to continue? (y/n): y mymodule was enabled successfully. [ok] simpletest was enabled successfully. [ok] Macintosh:modules seandunaway$ cd ../../.. Macintosh:xjm seandunaway$ drush test-run "My Module" Drush command terminated abnormally due to an unrecoverable error. [error]
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'xjm.system' doesn't exist: SELECT * FROM {system} WHERE type = 'theme' OR (type = 'module' AND status = 1) ORDER BY weight ASC, name ASC; Array ( ) in system_list() (line 165 of /Users/seandunaway/Sites/xjm/includes/module.inc).
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'xjm.watchdog' doesn't exist: INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 0 [:db_insert_placeholder_1] => php [:db_insert_placeholder_2] => %type: !message in %function (line %line of %file). [:db_insert_placeholder_3] => a:6:{s:5:"%type";s:12:"PDOException";s:8:"!message";s:242:"SQLSTATE[42S02]: Base table or view not found: 1146 Table 'xjm.system' doesn't exist: SELECT * FROM {system} WHERE type = 'theme' OR (type = 'module' AND status = 1) ORDER BY weight ASC, name ASC; Array ( ) ";s:9:"%function";s:13:"system_list()";s:5:"%file";s:48:"/Users/seandunaway/Sites/xjm/includes/module.inc";s:5:"%line";i:165;s:14:"severity_level";i:3;} [:db_insert_placeholder_4] => 3 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://default/index.php [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => 127.0.0.1 [:db_insert_placeholder_9] => 1310210355 ) in dblog_watchdog() (line 157 of /Users/seandunaway/Sites/xjm/modules/dblog/dblog.module).