Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
D, [2017-03-20T20:35:43.312080 #84351] DEBUG -- : (0.4ms) CREATE TABLE `schema_migrations` (`version` varchar(255) PRIMARY KEY) ENGINE=InnoDB
rails aborted!
ActiveRecord::StatementInvalid: Mysql2::Error: No database selected: CREATE TABLE `schema_migrations` (`version` varchar(255) PRIMARY KEY) ENGINE=InnoDB
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/mysql2-0.4.5/lib/mysql2/client.rb:120:in `_query'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/mysql2-0.4.5/lib/mysql2/client.rb:120:in `block in query'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/mysql2-0.4.5/lib/mysql2/client.rb:119:in `handle_interrupt'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/mysql2-0.4.5/lib/mysql2/client.rb:119:in `query'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:218:in `block in execute'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract_adapter.rb:589:in `block in log'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activesupport-5.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract_adapter.rb:583:in `log'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:218:in `execute'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/mysql/database_statements.rb:31:in `execute'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract/schema_statements.rb:278:in `create_table'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:423:in `create_table'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/schema_migration.rb:27:in `create_table'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract/schema_statements.rb:1010:in `initialize_schema_migrations_table'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/migration.rb:1109:in `initialize'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/migration.rb:1006:in `new'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/migration.rb:1006:in `up'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/migration.rb:984:in `migrate'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/railties-5.0.1/lib/rails/commands/rake_proxy.rb:14:in `block in run_rake_task'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/railties-5.0.1/lib/rails/commands/rake_proxy.rb:11:in `run_rake_task'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:51:in `run_command!'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/railties-5.0.1/lib/rails/commands.rb:18:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
Mysql2::Error: No database selected
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/mysql2-0.4.5/lib/mysql2/client.rb:120:in `_query'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/mysql2-0.4.5/lib/mysql2/client.rb:120:in `block in query'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/mysql2-0.4.5/lib/mysql2/client.rb:119:in `handle_interrupt'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/mysql2-0.4.5/lib/mysql2/client.rb:119:in `query'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:218:in `block in execute'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract_adapter.rb:589:in `block in log'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activesupport-5.0.1/lib/active_support/notifications/instrumenter.rb:21:in `instrument'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract_adapter.rb:583:in `log'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:218:in `execute'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/mysql/database_statements.rb:31:in `execute'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract/schema_statements.rb:278:in `create_table'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract_mysql_adapter.rb:423:in `create_table'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/schema_migration.rb:27:in `create_table'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/connection_adapters/abstract/schema_statements.rb:1010:in `initialize_schema_migrations_table'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/migration.rb:1109:in `initialize'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/migration.rb:1006:in `new'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/migration.rb:1006:in `up'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/migration.rb:984:in `migrate'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/tasks/database_tasks.rb:161:in `migrate'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/activerecord-5.0.1/lib/active_record/railties/databases.rake:58:in `block (2 levels) in <top (required)>'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/railties-5.0.1/lib/rails/commands/rake_proxy.rb:14:in `block in run_rake_task'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/railties-5.0.1/lib/rails/commands/rake_proxy.rb:11:in `run_rake_task'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/railties-5.0.1/lib/rails/commands/commands_tasks.rb:51:in `run_command!'
/Users/hyejinan/.rvm/gems/ruby-2.2.5/gems/railties-5.0.1/lib/rails/commands.rb:18:in `<top (required)>'
bin/rails:4:in `require'
bin/rails:4:in `<main>'
Tasks: TOP => db:migrate
(See full trace by running task with --trace)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment