当前位置:首页 > 数据库 >

文章分类:数据库

数据库 centos7编译安装LNMP(nginx-1.16.0,mysql8.0.16,php-7.3.6)常见问题报错及解决

LNMP的安装与配置 nginx-1.16.0安装及配置: 第一步:前往官网下载 nignx源码包 下载完毕后上传至服务器(先安装 lrzsz) yum -y install lrzsz 安装完毕后执行: rz 找到 nginx包后点击确定,即可……

数据库 mysql8.0无法给用户授权或提示You are not allowed to create a user with

mysql8.0无法给用户授权或提示You are not allowed to create a user with GRANT的问题 提示意思是不能用grant创建用户,mysql8.0以前的版本可以使用grant在授权的时候隐式的创建用户,8.0以后已经不支……

数据库 Error executing DDL "drop sequence if exists hibern

Error executing DDL "drop sequence if exists hibernate_sequence" via JDBC Statement 在使用springboot jpa进行部署项目时候, 因为application.yml文件配置错误,所以出现上面的异常情况.然后修改.yml配置文件为:……

数据库 Caused by: org.hibernate.HibernateException: Access to Diale

java.lang.IllegalStateException: Failed to load ApplicationContext at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java: 125 ) at org.springframework.test.c……

数据库 python3 UnicodeEncodeError错误,cx_oracle模块执行sql报错:UnicodeEncod

问题描述: 写了一个执行sql的模块,引用了cx_oracle,在windows机器上完美运行,移植到Centos上就会报错, UnicodeEncodeError: ‘ascii‘ codec can‘t encode characters in position 检查过程: 代码编码为……

数据库 zip方式安装的Mysql5.7,插入中文时出现Incorrect string value: 'xF0

Incorrect string value: ‘xF0x9F...‘ for column ‘XXX‘ at row 1 这个问题,原因是UTF-8编码有可能是两个、三个、四个字节。Emoji表情或者某些特殊字符是4个字节,而Mysql的utf8编码最多3个字节,所……

数据库 在使用JDBC连接数据库是出现java.sql.SQLException: No value specified for

在使用JDBC连接数据库是出现java.sql.SQLException: No value specified for parameter 1 检查后发现是:因为执行executeQuery()先于对sql语句中的占位符赋值,导致No value specified for parameter 1,看源码 修改……

数据库 错误:java.sql.SQLException: Access denied for user '&a

详细错误: 1 java.sql.SQLException: Access denied for user ‘‘@‘localhost‘ (using password: NO) 2 at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129) ~[mysql-connector-java-8.0.17.jar:8.0.17 ] 3 at com……

数据库 .NET Core EF框架使用SQL server 2008数据库分页问题:Incorrect syntax near

一、 问题 最近.Net Core程序部署到服务器,采用EF6。本地数据库是SQL server 2016,服务器数据库安装的是SQL server 2008 R2,在用到分页查询时报错如下: { "Depth": 0, "ClassName": "", "Message": "In……

数据库 Django项目与mysql交互进行数据迁移时报错:AttributeError: 'str&#

问题描述 Django项目启动,当我们执行命令 python manage.py makemigrations 出现如下错误: File " /usr/local/lib/python3.6/dist-packages/django/db/backends/mysql/operations.py " , line 147 , in last_executed_query query =……