相关疑难解决方法(0)

mysql错误:ERROR 1018(HY000):无法读取'.'的目录.(错误:13)

当我尝试在mysql中查看数据库时,我收到此错误:

ERROR 1018 (HY000): Can't read dir of '.' (errno: 13)
Run Code Online (Sandbox Code Playgroud)

这会阻止我的应用显示...

我的django调试器说:

(2002, "Can't connect to local MySQL server through socket '/var/lib/mysql/my_database' (13)")
Run Code Online (Sandbox Code Playgroud)

这是我的设置文件:

DATABASES = {
'default': {
    'ENGINE': 'django.db.backends.mysql', # Add 'postgresql_psycopg2', 'mysql', 'sqlite3' or 'oracle'.
    'NAME': 'my_database',                      # Or path to database file if using sqlite3.
    'USER': 'root',                      # Not used with sqlite3.
    'PASSWORD': '****',                  # Not used with sqlite3.
    'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
    'PORT': '3306',                      # …
Run Code Online (Sandbox Code Playgroud)

python mysql database django permissions

37
推荐指数
2
解决办法
4万
查看次数

标签 统计

database ×1

django ×1

mysql ×1

permissions ×1

python ×1