异常:java.sql.SQLException: Incorrect string value: '\xF0\x9F\x92\x94' for column 'name' at row 1 解决: MySql的utf-8编码只支持3个字节的数据,而移动端的emoji是四个字节的数据,如果直接往ut ...
分类:
数据库 时间:
2018-12-12 18:59:26
阅读次数:
185
1 MYSQL常用命令 2 1.导出整个数据库 3 mysqldump -u 用户名 -p –default-character-set=latin1 数据库名 > 导出的文件名(数据库默认编码是latin1) 4 mysqldump -u wcnc -p smgp_apps_wcnc > wcnc ...
分类:
数据库 时间:
2018-12-12 13:54:08
阅读次数:
213
常量池包含:8种基本数据类型(byte、short、int、float、long、double、char、boolean)、部分包装类(Byte,Short,Integer,Long,Character,Boolean,另外两种浮点数类型的包装类则没有实现)、对象型(如String及数组)还包含一些 ...
分类:
其他好文 时间:
2018-12-11 12:55:47
阅读次数:
178
由于需要用到utf8mb4,之前是utf8现在给改成utf8mb4 查看当前环境 SHOW VARIABLES WHERE Variable_name LIKE 'character\_set\_%' OR Variable_name LIKE 'collation%'; + + + | Varia ...
分类:
数据库 时间:
2018-12-09 18:53:04
阅读次数:
248
Given a string, find the first non-repeating character in it and return it's index. If it doesn't exist, return -1. Examples: Note: You may assume the ...
分类:
其他好文 时间:
2018-12-09 16:45:36
阅读次数:
158
CentOS 7安装MariaDB 10详解以及相关配置 第一步:添加 MariaDB yum 仓库 首先在CentOS操作系统中/etc/yum.repos.d/目录下添加 MariaDB 的YUM配置文件MariaDB.repo文件。 vi /etc/yum.repos.d/MariaDB.re ...
分类:
数据库 时间:
2018-12-09 12:06:59
阅读次数:
249
book your favorite book a story in your childhood a character in film or TV |词汇|含义|备注| | | | | | trend |趋势 | | | individuality |个性 | | | negative | 消极 ...
分类:
其他好文 时间:
2018-12-08 18:28:38
阅读次数:
186
1、配置操作系统环境变量path,增加mysql路径 C:\mysql\bin 2、mysql文件夹下面增加my.ini配置文件,文件内容如下: 根据自己的具体情况修改对应的参数 [client]port=3306default-character-set=utf8[mysqld]#设置mysql的 ...
分类:
数据库 时间:
2018-12-08 17:06:48
阅读次数:
134
一 基本数据类型包装类 8种基本数据类型对应的包装类: 字节型byte:Byte 短整型short:Short 整型int : Integer 长整型 long :Long 字符型char:Character 布尔型boolean: Boolean 浮点型float:Float 浮点型double: ...
分类:
其他好文 时间:
2018-12-08 16:59:06
阅读次数:
200
In a string S of lowercase letters, these letters form consecutive groups of the same character. For example, a string like S = "abbxxxxzyy" has the g ...
分类:
编程语言 时间:
2018-12-08 13:37:09
阅读次数:
131