Advertisement
Guest User

Untitled

a guest
Dec 7th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.70 KB | None | 0 0
  1. Mysql2::Error at /
  2. ==================
  3.  
  4. > Access denied for user 'my_user'@'localhost' (using password: YES)
  5.  
  6. mysql2 (0.4.9) lib/mysql2/client.rb, line 89
  7. --------------------------------------------
  8.  
  9. ``` ruby
  10. 84 host = host.to_s unless host.nil?
  11. 85 port = port.to_i unless port.nil?
  12. 86 database = database.to_s unless database.nil?
  13. 87 socket = socket.to_s unless socket.nil?
  14. 88
  15. > 89 connect user, pass, host, port, database, socket, flags
  16. 90 end
  17. 91
  18. 92 def parse_ssl_mode(mode)
  19. 93 m = mode.to_s.upcase
  20. 94 if m.start_with?('SSL_MODE_')
  21. ```
  22.  
  23. App backtrace
  24. -------------
  25.  
  26.  
  27.  
  28. Full backtrace
  29. --------------
  30.  
  31. - mysql2 (0.4.9) lib/mysql2/client.rb:89:in `initialize'
  32. - activerecord (5.1.4) lib/active_record/connection_adapters/mysql2_adapter.rb:21:in `mysql2_connection'
  33. - activerecord (5.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:759:in `new_connection'
  34. - activerecord (5.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:803:in `checkout_new_connection'
  35. - activerecord (5.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:782:in `try_to_checkout_new_connection'
  36. - activerecord (5.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:743:in `acquire_connection'
  37. - activerecord (5.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:500:in `checkout'
  38. - activerecord (5.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:374:in `connection'
  39. - activerecord (5.1.4) lib/active_record/connection_adapters/abstract/connection_pool.rb:931:in `retrieve_connection'
  40. - activerecord (5.1.4) lib/active_record/connection_handling.rb:116:in `retrieve_connection'
  41. - activerecord (5.1.4) lib/active_record/connection_handling.rb:88:in `connection'
  42. - activerecord (5.1.4) lib/active_record/migration.rb:562:in `connection'
  43. - activerecord (5.1.4) lib/active_record/migration.rb:553:in `call'
  44. - actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:26:in `block in call'
  45. - activesupport (5.1.4) lib/active_support/callbacks.rb:97:in `run_callbacks'
  46. - actionpack (5.1.4) lib/action_dispatch/middleware/callbacks.rb:24:in `call'
  47. - actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
  48. - better_errors (2.3.0) lib/better_errors/middleware.rb:84:in `protected_app_call'
  49. - better_errors (2.3.0) lib/better_errors/middleware.rb:79:in `better_errors_call'
  50. - better_errors (2.3.0) lib/better_errors/middleware.rb:57:in `call'
  51. - actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
  52. - actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
  53. - actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
  54. - better_errors (2.3.0) lib/better_errors/middleware.rb:84:in `protected_app_call'
  55. - better_errors (2.3.0) lib/better_errors/middleware.rb:79:in `better_errors_call'
  56. - better_errors (2.3.0) lib/better_errors/middleware.rb:57:in `call'
  57. - actionpack (5.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:59:in `call'
  58. - actionpack (5.1.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call'
  59. - railties (5.1.4) lib/rails/rack/logger.rb:36:in `call_app'
  60. - railties (5.1.4) lib/rails/rack/logger.rb:24:in `block in call'
  61. - activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `block in tagged'
  62. - activesupport (5.1.4) lib/active_support/tagged_logging.rb:26:in `tagged'
  63. - activesupport (5.1.4) lib/active_support/tagged_logging.rb:69:in `tagged'
  64. - railties (5.1.4) lib/rails/rack/logger.rb:24:in `call'
  65. - sprockets-rails (3.2.1) lib/sprockets/rails/quiet_assets.rb:13:in `call'
  66. - actionpack (5.1.4) lib/action_dispatch/middleware/remote_ip.rb:79:in `call'
  67. - actionpack (5.1.4) lib/action_dispatch/middleware/request_id.rb:25:in `call'
  68. - rack (2.0.3) lib/rack/runtime.rb:22:in `call'
  69. - activesupport (5.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:27:in `call'
  70. - actionpack (5.1.4) lib/action_dispatch/middleware/executor.rb:12:in `call'
  71. - actionpack (5.1.4) lib/action_dispatch/middleware/static.rb:125:in `call'
  72. - rack (2.0.3) lib/rack/sendfile.rb:111:in `call'
  73. - rack-mini-profiler (0.10.5) lib/mini_profiler/profiler.rb:282:in `call'
  74. - railties (5.1.4) lib/rails/engine.rb:522:in `call'
  75. - rack-cors (1.0.1) lib/rack/cors.rb:93:in `call'
  76. - puma (3.10.0) lib/puma/configuration.rb:225:in `call'
  77. - puma (3.10.0) lib/puma/server.rb:605:in `handle_request'
  78. - puma (3.10.0) lib/puma/server.rb:437:in `process_client'
  79. - puma (3.10.0) lib/puma/server.rb:301:in `block in run'
  80. - puma (3.10.0) lib/puma/thread_pool.rb:120:in `block in spawn_thread'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement