Mysql2::Error: Access denied for user username'@'localhost' (using password: NO)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Mysql2::Error: Access denied for user username'@'localhost' (using password: NO)

fugee ohu
Is there any reason this would happen in rails 6?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/577f8df2-2547-491b-b552-6d5d560db95b%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Mysql2::Error: Access denied for user username'@'localhost' (using password: NO)

Ariel Juodziukynas
I guess it's the same reason for any rails version, bad database configuration. Double check your config/database.yml

El mar., 15 oct. 2019 a las 13:04, fugee ohu (<[hidden email]>) escribió:
Is there any reason this would happen in rails 6?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/577f8df2-2547-491b-b552-6d5d560db95b%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcCJoDhReKATQ%2BXu84dySMwt%3DM0LZJcWhGGpQGvtfd_7QQ%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Mysql2::Error: Access denied for user username'@'localhost' (using password: NO)

fugee ohu


On Tuesday, October 15, 2019 at 12:11:21 PM UTC-4, Ariel Juodziukynas wrote:
I guess it's the same reason for any rails version, bad database configuration. Double check your config/database.yml

El mar., 15 oct. 2019 a las 13:04, fugee ohu (<<a href="javascript:" target="_blank" gdf-obfuscated-mailto="btdxTIMOCgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">fuge...@...>) escribió:
Is there any reason this would happen in rails 6?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="btdxTIMOCgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/577f8df2-2547-491b-b552-6d5d560db95b%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/577f8df2-2547-491b-b552-6d5d560db95b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/577f8df2-2547-491b-b552-6d5d560db95b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/577f8df2-2547-491b-b552-6d5d560db95b%40googlegroups.com.

Tried that I copied from a working database.yml

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/cf905986-2810-4f82-9b37-846093971a52%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Mysql2::Error: Access denied for user username'@'localhost' (using password: NO)

Ariel Juodziukynas
From your other question, you changed mysql to sqlite, somewhere you still have mysql configured. Look for any mysql reference on your code and remove that.

El mar., 15 oct. 2019 a las 13:15, fugee ohu (<[hidden email]>) escribió:


On Tuesday, October 15, 2019 at 12:11:21 PM UTC-4, Ariel Juodziukynas wrote:
I guess it's the same reason for any rails version, bad database configuration. Double check your config/database.yml

El mar., 15 oct. 2019 a las 13:04, fugee ohu (<[hidden email]>) escribió:
Is there any reason this would happen in rails 6?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/577f8df2-2547-491b-b552-6d5d560db95b%40googlegroups.com.

Tried that I copied from a working database.yml

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/cf905986-2810-4f82-9b37-846093971a52%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAPS3bcDpcStZy1u%3D58O7aZvT6Y9opSZdVy5vTDETtwbUPi%2BnGw%40mail.gmail.com.
Reply | Threaded
Open this post in threaded view
|

Re: Mysql2::Error: Access denied for user username'@'localhost' (using password: NO)

fugee ohu


On Tuesday, October 15, 2019 at 12:17:33 PM UTC-4, Ariel Juodziukynas wrote:
From your other question, you changed mysql to sqlite, somewhere you still have mysql configured. Look for any mysql reference on your code and remove that.

El mar., 15 oct. 2019 a las 13:15, fugee ohu (<<a href="javascript:" target="_blank" gdf-obfuscated-mailto="o1yk7dkOCgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">fuge...@...>) escribió:


On Tuesday, October 15, 2019 at 12:11:21 PM UTC-4, Ariel Juodziukynas wrote:
I guess it's the same reason for any rails version, bad database configuration. Double check your config/database.yml

El mar., 15 oct. 2019 a las 13:04, fugee ohu (<[hidden email]>) escribió:
Is there any reason this would happen in rails 6?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/577f8df2-2547-491b-b552-6d5d560db95b%40googlegroups.com?utm_medium=email&amp;utm_source=footer" rel="nofollow" target="_blank" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/577f8df2-2547-491b-b552-6d5d560db95b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/577f8df2-2547-491b-b552-6d5d560db95b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/577f8df2-2547-491b-b552-6d5d560db95b%40googlegroups.com.

Tried that I copied from a working database.yml

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="o1yk7dkOCgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/cf905986-2810-4f82-9b37-846093971a52%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/cf905986-2810-4f82-9b37-846093971a52%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/cf905986-2810-4f82-9b37-846093971a52%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/cf905986-2810-4f82-9b37-846093971a52%40googlegroups.com.

A lot of people having the same problem Could it be db:schema:load is dep'd in favor of db:migrate? Also I ran `  rails db:system:change --to=mysql`

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ee717ccc-f788-4b4e-984e-306255a38d57%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: Mysql2::Error: Access denied for user username'@'localhost' (using password: NO)

fugee ohu
In reply to this post by Ariel Juodziukynas


On Tuesday, October 15, 2019 at 12:11:21 PM UTC-4, Ariel Juodziukynas wrote:
I guess it's the same reason for any rails version, bad database configuration. Double check your config/database.yml

El mar., 15 oct. 2019 a las 13:04, fugee ohu (<<a href="javascript:" target="_blank" gdf-obfuscated-mailto="btdxTIMOCgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">fuge...@...>) escribió:
Is there any reason this would happen in rails 6?

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="btdxTIMOCgAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">rubyonra...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/rubyonrails-talk/577f8df2-2547-491b-b552-6d5d560db95b%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/577f8df2-2547-491b-b552-6d5d560db95b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/rubyonrails-talk/577f8df2-2547-491b-b552-6d5d560db95b%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/rubyonrails-talk/577f8df2-2547-491b-b552-6d5d560db95b%40googlegroups.com.

Now it works

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/f3826a00-cdaa-4cb2-b3d1-a6ff53ee0ac0%40googlegroups.com.