我是靠谱客的博主 贤惠盼望,这篇文章主要介绍1130, "Host 'DESKTOP-FK0AGS4' is not allowed to connect to this MySQL server,现在分享给大家,希望可以做个参考。
django2.07版本连接mysql服务器 1130, "Host 'DESKTOP-FK0AGS4' is not allowed to connect to this MySQL server
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': "mxxshop", 'USER': 'root', 'PASSWORD': "123456", 'HOST': "localhost", 'OPTIONS':{'init_command':'SET default_storage_engine=INNODB;'} # 'OPTIONS': { 'init_command': 'SET storage_engine=INNODB;' } 之前版本是这条 }
'OPTIONS':{'init_command':'SET default_storage_engine=INNODB;'}新版本改成这条即可
最后
以上就是贤惠盼望最近收集整理的关于1130, "Host 'DESKTOP-FK0AGS4' is not allowed to connect to this MySQL server的全部内容,更多相关1130,内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复