前言: 前几天刚买了新电脑,装上MySQL有几天了,今天没事试了一下,发现默认字符集没有修改,还是默认的latin1,折腾了大半天,终于搞好了。 这是我成功设置后的结果图; 命令式直接在MySQL界面就可以输入的 -> show variables like 'character%'; 我是怎么做到 ...
分类:
数据库 时间:
2018-09-16 12:27:05
阅读次数:
195
Mac上从官方安装完Mysql5.7后,有一部分的字符集默认为latin1,而非utf8,为避免乱码的产生,本文介绍将所有字符集设置为utf8查看当前字符集编码showvariableslike‘%char%‘;我们会发现这些字符集为latin1修改字符集为utf8关闭Mysql服务新建一个my.cnf配置文件,执行下面命令,如果已存在则会打开该文件sudovim/etc/my.cnf按i键进入编
分类:
数据库 时间:
2018-09-15 23:22:33
阅读次数:
199
和剑指offer上有个题很像,但当时没考虑到比如只有cc,整个字符完全都是重复的情况 ...
分类:
其他好文 时间:
2018-09-15 22:01:20
阅读次数:
118
在delphi和intel fortran下实证过。 ...
You're given strings J representing the types of stones that are jewels, and S representing the stones you have. Each character in Sis a type of stone ...
分类:
编程语言 时间:
2018-09-15 13:50:17
阅读次数:
199
Python实现Word-Counter 一、前言 Github地址:https://github.com/hzquestion/Word-Counter 二、项目概述 实现一个统计程序,它能正确统计程序文件中的字符数、单词数、行数,以及还具备其他扩展功能,并能够快速地处理多个文件。 处理模式: p ...
分类:
其他好文 时间:
2018-09-14 22:54:45
阅读次数:
190
在linux/unix下使用telnet hostname port连接上主机后会提示Escape character is '^]' 这个提示的意思是按Ctrl + ] 会呼出telnet的命令行,出来telnet命令好之后就可以执行telnet命令,例如退出出telnet是quit. 其他常用的 ...
分类:
Web程序 时间:
2018-09-13 20:19:49
阅读次数:
338
CentOS7的默认yum仓库中并没有MySQL5.7,我们需要手动添加,好在MySQL官方提供了仓库的地址,所以我们能够比较简单地安装MySQL。本文我们将介绍CentOS7下MySQL5.7的安装。添加Mysql5.7仓库sudorpm-ivhhttps://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm确认Mysql
分类:
数据库 时间:
2018-09-13 20:16:09
阅读次数:
182
遇到的提示错误:_csv.Error: new-line character seen in unquoted field - do you need to open the file in universal-newline mode? 错误code如下: 解决方法: 将上述代码第7行写成 wit ...
分类:
其他好文 时间:
2018-09-13 20:06:11
阅读次数:
235
题目: Given a non-empty string s, you may delete at most one character. Judge whether you can make it a palindrome. 给定非空字符串s,您最多可以删除一个字符。 判断你是否可以成为回文。 E ...
分类:
其他好文 时间:
2018-09-13 10:21:34
阅读次数:
143