Comments (5)
另外我的navicat不支持建名字为web-flash
的数据库,
我建为webflash
的数据库,修改数据库配置文件后,程序帮我自动建表但没有自动插入测试数据
我手动插入数据MySQL给我1366 - Incorrect string value: '\xE4\xB8\x80\xE8\x88\xAC...' for column 'content' at row 1
错误。
然后网上说此错误原因是数据库列编码设置问题?
请帮助解决,谢谢您。
from web-flash.
检查配置文件里数据库编码配置:
spring.datasource.url=jdbc:mysql://localhost:3306/webflash?useUnicode=true&characterEncoding=UTF8
spring.datasource.sql-script-encoding=utf-8
据此建表的字段编码应该为utf8的,你查查你为什么建出来时latin1
另外你得数据库版本比较新,数据库名不允许有中横岗-,不是navicat的原因
from web-flash.
@enilu 我猜测可能是我windows系统mysql设置编码的原因
参考这篇文章修改:https://www.lovesofttech.com/database/mysql5.7ToUtf8mb4/
我最后修改了我mysql配置文件my.ini
添加了以下的配置
[client]
default-character-set=utf8mb4
[mysqld]
character-set-server=utf8mb4
collation-server=utf8mb4_unicode_ci
init_connect='SET NAMES utf8mb4'
skip-character-set-client-handshake=false
[mysql]
default-character-set=utf8mb4
然后重启mysql服务器,删掉了原来所有表,系统重新帮我新建表并且再自动插入数据正常。
记录下给有同样情况的朋友们用。
from web-flash.
此外在测试过程中,发现了可能会有以下的问题:
另外我们打算针对您的系统做二次开发,现在还在熟悉,希望和您多多交流。
from web-flash.
@CHN-STUDENT 错误原因不是有了么,检查下idChannel有没有传到后台,
联系人后台不做编辑,时候cms前端客户录入的,http://47.104.84.62:8080/mobile/#/contact
文件管理可以下载啊,查询暂时没空做,你有更多问题的花可以去qq群里问
from web-flash.
Related Issues (20)
- 修改表格数据bug HOT 2
- 语言切换bug
- shiro导致缓存注解失效 HOT 2
- 代码生成插件无法生成代码 HOT 4
- #BUG 排序的问题,发现一个BUG,分页查询的时候有个排序的问题
- 将ID替换成String以后,在处理菜单的时候MenuRepository的getMenusByRoleids方法会出错
- 菜单层级 HOT 1
- 在ie上运行报错,是没有适配 HOT 1
- 演示页面账户被冻结 HOT 1
- 自定义菜单不渲染
- 网站的登录账号 admin和developer 被冻结,无法登录查看演示
- 系统管理->权限管理->权限配置报错 HOT 1
- admin演示账户被冻结了
- admin后台版本在npm出现异常 HOT 5
- 请问流程图编辑页面的前端代码在哪里 HOT 2
- 很奇怪,这个字典一直报400,刚拉这个项目下来 HOT 2
- 在 flash-vue-admin 中使用 npm install --registry=https://registry.npmmirror.com 时报错 HOT 2
- 请教,打包启动报错 HOT 2
- 后台/prod-api/user/resetPassword接口存在越权漏洞 HOT 1
- 无法成功启动flash-api,报错,有人帮忙看下吗,非常感谢了 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from web-flash.