GithubHelp home page GithubHelp logo

Comments (5)

CHN-STUDENT avatar CHN-STUDENT commented on July 24, 2024

@enilu

另外我的navicat不支持建名字为web-flash的数据库,

我建为webflash的数据库,修改数据库配置文件后,程序帮我自动建表但没有自动插入测试数据

我手动插入数据MySQL给我1366 - Incorrect string value: '\xE4\xB8\x80\xE8\x88\xAC...' for column 'content' at row 1 错误。

image

然后网上说此错误原因是数据库列编码设置问题?

image

请帮助解决,谢谢您。

from web-flash.

enilu avatar enilu commented on July 24, 2024

检查配置文件里数据库编码配置:
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.

CHN-STUDENT avatar CHN-STUDENT commented on July 24, 2024

@enilu 我猜测可能是我windows系统mysql设置编码的原因
image

参考这篇文章修改: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服务器,删掉了原来所有表,系统重新帮我新建表并且再自动插入数据正常
记录下给有同样情况的朋友们用。

image

from web-flash.

CHN-STUDENT avatar CHN-STUDENT commented on July 24, 2024

此外在测试过程中,发现了可能会有以下的问题:

  1. 栏目管理添加应为栏目管理:
    image

  2. CMS文章添加和编辑均有异常?
    image
    image

  3. 联系管理就一个联系人?不知道是否需要增删改。

  4. 文件管理可能是查询和下载?

另外我们打算针对您的系统做二次开发,现在还在熟悉,希望和您多多交流。

from web-flash.

enilu avatar enilu commented on July 24, 2024

@CHN-STUDENT 错误原因不是有了么,检查下idChannel有没有传到后台,
联系人后台不做编辑,时候cms前端客户录入的,http://47.104.84.62:8080/mobile/#/contact
文件管理可以下载啊,查询暂时没空做,你有更多问题的花可以去qq群里问

from web-flash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.