我正在尝试使用我的 Django project-ecomstore 配置 mysql,但我得到了标题中给出的错误,
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql', #
'NAME': 'ecomstore', # Or path to database file if using sqlite3.
'USER': 'root', # Not used with sqlite3.
'PASSWORD': 'password', # Not used with sqlite3.
'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
'PORT': '', # Set to empty string for default. Not used with sqlite3.
}
}
错误:
C:\Python27\Djangoprojects\ecomstore>python manage.py dbshell
'mysql' is not recognized as an internal or external command,
operable program or batch file.
请提供您的意见。