2020年

今年的国庆节和中秋节
这两个节日将会在同一天哦
2020中秋节

具体放假安排:

国庆节、中秋节:10月1日至8日放假调休,共8天
9月27日(星期日)、10月10日(星期六)上班

受“闰四月”影响庚子鼠年内的农历节日端午节、七夕节、重阳节 在阳历中的对应日期相较去年来说都向后推迟18天!所以呢,中秋节假期也就出现了变化!

/*

  • unicode编码转中文
    */

public static String decodeUnicode(String str) {
Pattern pattern = Pattern.compile("(\\u(\p{XDigit}{4}))");
Matcher matcher = pattern.matcher(str);
char ch;
while (matcher.find()) {

  ch = (char) Integer.parseInt(matcher.group(2), 16);
  str = str.replace(matcher.group(1), ch + "");

}
return str;
}

1.Copy整个Mysql目录及数据文件到另一台电脑,路径跟原安装路径一致

2.环境变量添加path路径 指定到mysql 的bin目录,也可设置HOME,如下方:

新增系统变量MYSQL_HOME:安装目录
在PATH变量的最后面添加: ;%MYSQL_HOME%\bin(注意前面的;)

3.根据需要调整配置文件

4.注册服务

cmd 输入命令: mysqld --install mysql

5.启动服务 net start mysql

mysql迁移

Navicat连接后,发现原数据库都在,完美迁移。

Notes
For Connector/J 8.0.12 and earlier: In order to use the utf8mb4 character set for the connection, the server MUST be configured with character_set_server=utf8mb4; if that is not the case, when UTF-8 is used for characterEncoding in the connection string, it will map to the MySQL character set name utf8, which is an alias for utf8mb3.

For Connector/J 8.0.13 and later:

When UTF-8 is used for characterEncoding in the connection string, it maps to the MySQL character set name utf8mb4.

If the connection option connectionCollation is also set alongside characterEncoding and is incompatible with it, characterEncoding will be overridden with the encoding corresponding to connectionCollation.

Because there is no Java-style character set name for utfmb3 that you can use with the connection option charaterEncoding, the only way to use utf8mb3 as your connection character set is to use a utf8mb3 collation (for example, utf8_general_ci) for the connection option connectionCollation, which forces a utf8mb3 character set to be used, as explained in the last bullet.

官方手册链接:
https://dev.mysql.com/doc/connectors/en/connector-j-reference-charsets.html

提示
mysql-connector-java 版本在8.0.12之前的,包括8.0.12,服务端必须设置character_set_server=utf8mb4;如果不是的话,就算设置了characterEncoding=UTF-8,照样会被设置为MYSQL的 utf8字符集,也就是utf8mb3。

对于8.0.13和以后的版本,如果设置了characterEncoding=UTF-8,他会映射到MYSQL的utf8mb4字符集。

如果connectionCollation 也和characterEncoding一起设置了,但是不兼容,characterEncoding会被connectionCollation的设置覆盖掉。

由于没有Java-Style的utfmb3对应的字符集名称可以用在connection选项charaterEncoding上,唯一的设置utf8mb3的方式就是在连接选项设置utf8mb3 collation(例如utf8_general_ci),这会强制使用utf8mb3字符集,正如上文所述。

查看mysql字符集

show variables like 'char%'; show variables like 'collation%';

 近日,微软商店上架一款名为《Windows File Recovery》的软件。这款软件非常简单,但十分实用。这个工具可以帮助你恢复不小心删除或丢失的一些数据。
Windows File Recovery

  这是一个命令行工具,软件大小为 8.29 MB。即使硬盘已经清空了,它也可以恢复照片、文档、视频等文件。值得一提的是,该工具可以从连接的相机或 SD 卡中恢复数据。功能十分强大。

 这个软件支持:

  在恢复文件中定位文件名,关键字,文件路径或扩展名;

  恢复 JPEG,PDF,PNG,MPEG,Office 文件,MP3 和 MP4,ZIP 文件等;

  从 HDD,SSD,USB 和存储卡中恢复文件;

  支持 NTFS,FAT,exFAT 和 ReFS 文件系统;

免责声明
本博客部分内容来自于互联网,不代表作者的观点和立场,如若侵犯到您的权益,请联系[email protected]。我们会在24小时内进行删除。