How to deal with this ERROR (1049, "Unknown database '/users/ohyunjun/work/astral/mysql'")

'NAME' is the name of your database. With MySQL, you need to manually create your database too. Let's say, if you run:

$ mysql -u root -p

mysql> CREATE DATABASE mydb;
Query OK, 1 row affected (0.02 sec)

your configuration should be:

DATABASES = {
    'default': {
        'ENGINE': 'django.db.backends.mysql',
        'NAME': 'mydb',
        'USER': 'root',
        'PASSWORD': 'sp153426',
        'HOST': '127.0.0.1',
        'PORT': '3306',
    }
}