Unable to create the django_migrations table 迁移文件时报错
来源:互联网 发布:社会支持网络理论ppt 编辑:程序博客网 时间:2024/05/16 15:35
执行python manage.py makemigrations 报错:
raise MigrationSchemaMissing("Unable to create the django_migrations table (%s)" % exc)
django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the django_migrations table ((1142, "CREATE command denied to user 'bi_r'@'10.173.29.181' for table 'django_migrations'"))
原因:
当前连接数据库的用户没有schema的create权限
解决办法:
进入数据库中,执行授权命令,给该用户授权:
grant usage on schema public to username;grant create on schema public to username;
当然一般也不能做这种授权操作,所以直接找老大喽
阅读全文
0 0
- Unable to create the django_migrations table 迁移文件时报错
- django.db.migrations.exceptions.MigrationSchemaMissing: Unable to create the django_migrations table
- create table时报错
- android studio启动时报错:Unable to create Debug Bridge
- Unable to create the pidfile.
- sqldeveloper启动时报 Unable to create an instance of the Java Virtual Machine
- sqldeveloper 启动时报 Unable to create an instance of the Java Virtual Machine Located at path: ...
- Unable to create the selected preference page
- sqldeveloper启动时报Unable to create an instance of the Java Virtual Machine Located at path: ..\..\jdk\
- Ecplise打开xml文件时报Failed to create the part's controls错误
- ORA-31633: unable to create master table "NEW.GWJOB"
- ORA-31633: unable to create master table "SCOTT.JOB2"
- python2.7用pip进行安装时报错Fatal error in launcher: Unable to create process using '"'
- SpringMVC启动时报错:Unable to create a Configuration, because no Bean Validation provider could be found.
- python2用pip进行安装时报错Fatal error in launcher: Unable to create process using '"'
- 【问题解决】Flex Builder 4.5启动时报错:failed to create the java virtual machine Flash Builder
- Flash Builder4.5启动时报错 - Failed to create the Java Virtual Machine
- 启动Eclipse时报错【Failed to create the Java Virtual Machine】解决方法--easy
- NP类问题
- 获取用户的地理位置接口
- 使用中文维基百科进行Word2Vec实验
- UVA 11235 Frequent values(RMQ)
- 查询的数据不能映射到我的po类,只能显示查询到行数 ,数据显示的为空
- Unable to create the django_migrations table 迁移文件时报错
- Java实现验证码的生成
- lnmp的数据库缓存---->memcache
- Latex-特殊公式
- P1074 靶形数独
- Android 性能测试之方向与框架篇
- $(#id).val()在控制台可以获取到id的值,在js中却报错
- iOS可复用控件之发送动画
- Pareto最优解排序