博客
关于我
问题解决20:解决group不能用在新建数据库中
阅读量:684 次
发布时间:2019-03-16

本文共 523 字,大约阅读时间需要 1 分钟。

设定MySQL数据库的SQL模式为

‘STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION’

这条设置命令用于限制数据库的运行行为,确保数据的一致性和完整性。以下是每个模式的作用:

  • STRICT_TRANS_TABLES:在数据转换过程中,禁止隐式转换非 строк类型的列为字符串类型,这样可以降低错误风险。
  • NO_ZERO_IN_DATE:禁止使用零作为日期或时间值,这样可以防止无效日期或时间记录。
  • NO_ZERO_DATE:禁止使用零作为日期值,确保所有日期或时间记录都是有意义的。
  • ERROR_FOR_DIVISION_BY_ZERO:在进行除法操作时,发现除数为零时抛出错误而非不推荐行为。
  • NO_AUTO_CREATE_USER:阻止自动创建默认用户,这样可以提高系统安全性。
  • NO_ENGINE_SUBSTITUTION:禁止在函数或存储过程中自动替换引擎,这样可以确保数据库行为的一致性。
  • 通过启用这些模式,可以有效提升数据库的稳定性和安全性。

    转载地址:http://yyeqz.baihongyu.com/

    你可能感兴趣的文章
    NLP:使用 SciKit Learn 的文本矢量化方法
    查看>>
    Nmap扫描教程之Nmap基础知识
    查看>>
    Nmap端口扫描工具Windows安装和命令大全(非常详细)零基础入门到精通,收藏这篇就够了
    查看>>
    NMAP网络扫描工具的安装与使用
    查看>>
    NMF(非负矩阵分解)
    查看>>
    nmon_x86_64_centos7工具如何使用
    查看>>
    NN&DL4.1 Deep L-layer neural network简介
    查看>>
    NN&DL4.3 Getting your matrix dimensions right
    查看>>
    NN&DL4.8 What does this have to do with the brain?
    查看>>
    nnU-Net 终极指南
    查看>>
    No 'Access-Control-Allow-Origin' header is present on the requested resource.
    查看>>
    NO 157 去掉禅道访问地址中的zentao
    查看>>
    no available service ‘default‘ found, please make sure registry config corre seata
    查看>>
    no connection could be made because the target machine actively refused it.问题解决
    查看>>
    No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
    查看>>
    No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
    查看>>
    No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
    查看>>
    No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
    查看>>
    No mapping found for HTTP request with URI [/logout.do] in DispatcherServlet with name 'springmvc'
    查看>>
    No module named 'crispy_forms'等使用pycharm开发
    查看>>