create_database (ActiveRecord::ConnectionAdapters::MysqlAdapter) - APIdock Welcome Register Projects Help About Blog Use OpenID Login Password OpenID URL Remember me RSpec Ruby Ruby on Rails Flowdock method create_database v2.0.3 - Show latest stable - 0 notes - Class: ActiveRecord::ConnectionAdapters::MysqlAdapter 1.0.0 1.1.6 1.2.6 2.0.3 (0) 2.1.0 (2) 2.2.1 (0) 2.3.2 (0) 2.3.8 (0) 3.0.0 (0) 3.0.9 (-2) 3.1.0 (0) 3.2.1 3.2.8 3.2.13 4.0.2 4.1.8 4.2.1 4.2.7 4.2.9 5.0.0.1 5.1.7 5.2.3 6.0.0 6.1.3.1 What's this? Related methods Class methods (3) emulate_booleans (>= v3.0.9) new visitor_for (>= v3.1.0) Instance methods (91) active? adapter_name (>= v2.1.0) add_column (>= v2.3.8) add_column_position! (>= v2.3.8) add_column_sql (>= v3.1.0) add_index_sql (>= v3.1.0) add_limit_offset! (>= v1.0.0) add_timestamps_sql (>= v3.1.0) begin_db_transaction (>= v2.1.0) bulk_change_table (>= v3.1.0) case_sensitive_equality_ope... (>= v2.2.1) case_sensitive_modifier (>= v3.1.0) change_column (>= v2.1.0) change_column_default (>= v2.1.0) change_column_null (>= v2.2.1) change_column_sql (>= v3.1.0) charset clear_cache! (>= v3.1.0) client_encoding (>= v3.1.0) collation column_for (>= v2.2.1) columns (>= v2.1.0) commit_db_transaction (>= v2.1.0) configure_connection (>= v2.2.1) connect create (>= v3.0.0) create_database create_savepoint (>= v2.3.2) create_table (>= v2.1.0) current_database disable_referential_integrity (>= v2.1.0) disconnect! drop_database (>= v2.1.0) drop_table each_hash (>= v3.2.1) error_number (>= v3.2.1) exec_delete (>= v3.1.0) exec_query (>= v3.1.0) exec_stmt (>= v3.1.0) exec_update (>= v3.1.0) execute (>= v2.1.0) execute_and_free (>= v3.2.1) exec_without_stmt (>= v3.1.0) full_version (>= v4.1.8) indexes (>= v2.1.0) initialize_type_map (>= v4.2.1) insert_sql (>= v2.1.0) join_to_update (>= v3.1.0) last_inserted_id (>= v3.1.0) limited_update_conditions (>= v2.2.1) native_database_types (>= v1.0.0) new_column (>= v3.2.1) pk_and_sequence_for (>= v2.1.0) primary_key (>= v2.3.8) quote quote_column_name (>= v2.1.0) quoted_columns_for_index (>= v2.3.8) quoted_false quoted_true quote_string (>= v2.1.0) quote_table_name (>= v2.1.0) reconnect! recreate_database (>= v2.1.0) release_savepoint (>= v2.3.2) remove_column_sql (>= v3.1.0) remove_index_sql (>= v3.1.0) remove_timestamps_sql (>= v3.1.0) rename_column (>= v2.1.0) rename_column_sql (>= v3.1.0) rename_table reset! (>= v2.2.1) rollback_db_transaction (>= v2.1.0) rollback_to_savepoint (>= v2.3.2) select select_rows set_field_encoding (>= v4.0.2) show_variable structure_dump (>= v2.1.0) supports_bulk_alter? (>= v3.1.0) supports_migrations? (>= v2.1.0) supports_primary_key? (>= v2.3.8) supports_savepoints? (>= v2.3.2) supports_statement_cache? (>= v3.1.0) supports_views? table_exists? (>= v3.0.9) tables (>= v2.1.0) translate_exception (>= v3.0.0) type_cast (>= v3.1.0) type_to_sql (>= v2.1.0) update_sql (>= v2.1.0) version = private = protected create_database(name, options = {}) public Create a new MySQL database with optional :charset and :collation. Charset defaults to utf8. Example: