Home>
I want to be able to use mysql with django.

I'm building an environment for service development with django.
The following error message has occurred.

$Access denied for user'root' @'localhost' (using password: NO)
What I tried
$mysql server stop
$brew services stop mysql
$mysqld_safe -skip-grant-tables&


mysqld_safe -skip-grant-tables
201105 19:38:08 mysqld_safe A mysqld process already exists
Will come out.
By the way, killall mysqld mysqld_safe
Very much
A mysqld process already exists
Did not disappear.

django 3.1.2
mysql Ver 14.14 Distrib 5.6.47, for osx10.15 (x86_64)

  • Answer # 1

    mysqld -skip-grant-tables
    I solved it with.

  • Answer # 2

    $Access denied for user'root' @'localhost' (using password: NO)

    This is primarily the message returned if the password for the connection is incorrect.
    The above is the answer when (using password: YES) ^^;
    If NO, the message is when no password has been passed.

    The content written in the trial is not linked to the above at all, so I think I have misunderstood something.