今現在、mysqlにアクセスしようとしているのですが、拒否されていて、ログインすることができない状態になっています。もし、わかる方がいらしたら、教えて頂きたいです。
database.yml
1default: &default 2 adapter: mysql2 3 encoding: utf8 4 pool: 5 5 username: root 6 password: 7 socket: /tmp/mysql.sock 8 9 10development: 11 <<: *default 12 database: surfing_development 13
terminal
1Mysql2::Error (Access denied for user 'root'@'localhost' (using password: NO)): 2 mysql2 (0.3.18) lib/mysql2/client.rb:70:in `connect' 3 mysql2 (0.3.18) lib/mysql2/client.rb:70:in `initialize' 4 activerecord (4.2.8) lib/active_record/connection_adapters/mysql2_adapter.rb:18:in `new' 5 activerecord (4.2.8) lib/active_record/connection_adapters/mysql2_adapter.rb:18:in `mysql2_connection' 6 activerecord (4.2.8) lib/active_record/connection_adapters/abstract/connection_pool.rb:438:in `new_connection' 7 activerecord (4.2.8) lib/active_record/connection_adapters/abstract/connection_pool.rb:448:in `checkout_new_connection' 8 activerecord (4.2.8) lib/active_record/connection_adapters/abstract/connection_pool.rb:422:in `acquire_connection' 9 activerecord (4.2.8) lib/active_record/connection_adapters/abstract/connection_pool.rb:349:in `block in checkout' 10 /Users/hiroshi/.rbenv/versions/2.4.0/lib/ruby/2.4.0/monitor.rb:214:in `mon_synchronize' 11 activerecord (4.2.8) lib/active_record/connection_adapters/abstract/connection_pool.rb:348:in `checkout' 12 activerecord (4.2.8) lib/active_record/connection_adapters/abstract/connection_pool.rb:263:in `block in connection' 13 /Users/hiroshi/.rbenv/versions/2.4.0/lib/ruby/2.4.0/monitor.rb:214:in `mon_synchronize' 14 activerecord (4.2.8) lib/active_record/connection_adapters/abstract/connection_pool.rb:262:in `connection' 15 activerecord (4.2.8) lib/active_record/connection_adapters/abstract/connection_pool.rb:571:in `retrieve_connection' 16 activerecord (4.2.8) lib/active_record/connection_handling.rb:113:in `retrieve_connection' 17 activerecord (4.2.8) lib/active_record/connection_handling.rb:87:in `connection' 18 activerecord (4.2.8) lib/active_record/migration.rb:383:in `connection' 19 activerecord (4.2.8) lib/active_record/migration.rb:370:in `call' 20 actionpack (4.2.8) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' 21 activesupport (4.2.8) lib/active_support/callbacks.rb:88:in `__run_callbacks__' 22 activesupport (4.2.8) lib/active_support/callbacks.rb:778:in `_run_call_callbacks' 23 activesupport (4.2.8) lib/active_support/callbacks.rb:81:in `run_callbacks' 24 actionpack (4.2.8) lib/action_dispatch/middleware/callbacks.rb:27:in `call' 25 actionpack (4.2.8) lib/action_dispatch/middleware/reloader.rb:73:in `call' 26 actionpack (4.2.8) lib/action_dispatch/middleware/remote_ip.rb:78:in `call' 27 actionpack (4.2.8) lib/action_dispatch/middleware/debug_exceptions.rb:17:in `call' 28 web-console (2.3.0) lib/web_console/middleware.rb:28:in `block in call' 29 web-console (2.3.0) lib/web_console/middleware.rb:18:in `catch' 30 web-console (2.3.0) lib/web_console/middleware.rb:18:in `call' 31 actionpack (4.2.8) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call' 32 railties (4.2.8) lib/rails/rack/logger.rb:38:in `call_app' 33 railties (4.2.8) lib/rails/rack/logger.rb:20:in `block in call' 34 activesupport (4.2.8) lib/active_support/tagged_logging.rb:68:in `block in tagged' 35 activesupport (4.2.8) lib/active_support/tagged_logging.rb:26:in `tagged' 36 activesupport (4.2.8) lib/active_support/tagged_logging.rb:68:in `tagged' 37 railties (4.2.8) lib/rails/rack/logger.rb:20:in `call' 38 actionpack (4.2.8) lib/action_dispatch/middleware/request_id.rb:21:in `call' 39 rack (1.6.11) lib/rack/methodoverride.rb:22:in `call' 40 rack (1.6.11) lib/rack/runtime.rb:18:in `call' 41 activesupport (4.2.8) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in `call' 42 actionpack (4.2.8) lib/action_dispatch/middleware/static.rb:120:in `call' 43 rack (1.6.11) lib/rack/sendfile.rb:113:in `call' 44 railties (4.2.8) lib/rails/engine.rb:518:in `call' 45 railties (4.2.8) lib/rails/application.rb:165:in `call' 46 rack (1.6.11) lib/rack/content_length.rb:15:in `call' 47 thin (1.7.2) lib/thin/connection.rb:86:in `block in pre_process' 48 thin (1.7.2) lib/thin/connection.rb:84:in `catch' 49 thin (1.7.2) lib/thin/connection.rb:84:in `pre_process' 50 thin (1.7.2) lib/thin/connection.rb:53:in `process' 51 faye-websocket (0.10.0) lib/faye/adapters/thin.rb:40:in `process' 52 thin (1.7.2) lib/thin/connection.rb:39:in `receive_data' 53 faye-websocket (0.10.0) lib/faye/adapters/thin.rb:44:in `receive_data' 54 eventmachine (1.2.7) lib/eventmachine.rb:195:in `run_machine' 55 eventmachine (1.2.7) lib/eventmachine.rb:195:in `run' 56 thin (1.7.2) lib/thin/backends/base.rb:73:in `start' 57 thin (1.7.2) lib/thin/server.rb:162:in `start' 58 rack (1.6.11) lib/rack/handler/thin.rb:19:in `run' 59 rack (1.6.11) lib/rack/server.rb:287:in `start' 60 railties (4.2.8) lib/rails/commands/server.rb:80:in `start' 61 railties (4.2.8) lib/rails/commands/commands_tasks.rb:80:in `block in server' 62 railties (4.2.8) lib/rails/commands/commands_tasks.rb:75:in `tap' 63 railties (4.2.8) lib/rails/commands/commands_tasks.rb:75:in `server' 64 railties (4.2.8) lib/rails/commands/commands_tasks.rb:39:in `run_command!' 65 railties (4.2.8) lib/rails/commands.rb:17:in `<top (required)>' 66 bin/rails:9:in `require' 67 bin/rails:9:in `<top (required)>' 68 spring (2.1.0) lib/spring/client/rails.rb:28:in `load' 69 spring (2.1.0) lib/spring/client/rails.rb:28:in `call' 70 spring (2.1.0) lib/spring/client/command.rb:7:in `call' 71 spring (2.1.0) lib/spring/client.rb:30:in `run' 72 spring (2.1.0) bin/spring:49:in `<top (required)>' 73 spring (2.1.0) lib/spring/binstub.rb:11:in `load' 74 spring (2.1.0) lib/spring/binstub.rb:11:in `<top (required)>' 75 /Users/hiroshi/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require' 76 /Users/hiroshi/.rbenv/versions/2.4.0/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require' 77 bin/spring:15:in `<top (required)>' 78 bin/rails:3:in `load' 79 bin/rails:3:in `<main>' 80 81 82 Rendered /Users/hiroshi/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-4.2.8/lib/action_dispatch/middleware/templates/rescues/_source.erb (6.2ms) 83 Rendered /Users/hiroshi/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-4.2.8/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (2.6ms) 84 Rendered /Users/hiroshi/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-4.2.8/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.1ms) 85 Rendered /Users/hiroshi/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/actionpack-4.2.8/lib/action_dispatch/middleware/templates/rescues/diagnostics.html.erb within rescues/layout (141.8ms) 86 Rendered /Users/hiroshi/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/web-console-2.3.0/lib/web_console/templates/_markup.html.erb (0.4ms) 87 Rendered /Users/hiroshi/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/web-console-2.3.0/lib/web_console/templates/_inner_console_markup.html.erb within layouts/inlined_string (0.4ms) 88 Rendered /Users/hiroshi/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/web-console-2.3.0/lib/web_console/templates/_prompt_box_markup.html.erb within layouts/inlined_string (0.3ms) 89 Rendered /Users/hiroshi/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/web-console-2.3.0/lib/web_console/templates/style.css.erb within layouts/inlined_string (0.4ms) 90 Rendered /Users/hiroshi/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/web-console-2.3.0/lib/web_console/templates/console.js.erb within layouts/javascript (214.3ms) 91 Rendered /Users/hiroshi/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/web-console-2.3.0/lib/web_console/templates/main.js.erb within layouts/javascript (0.3ms) 92 Rendered /Users/hiroshi/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/web-console-2.3.0/lib/web_console/templates/error_page.js.erb within layouts/javascript (0.5ms) 93 Rendered /Users/hiroshi/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/web-console-2.3.0/lib/web_console/templates/index.html.erb (359.7ms)
回答5件
あなたの回答
tips
プレビュー