1.找到mysql启动时是加载了哪个my.cnf文件 看看是否有设置使用指定目录的my.cnf文件,如果有则表示mysql启动时是加载了默认的配置文件(/etc/my.cnf) ps aux|grep mysql|grep 'my.cnf' 2.查看mysql默认使用的my.cnf文件目录 mysq ...
分类:
数据库 时间:
2020-07-22 20:52:23
阅读次数:
108
们自己写的字典只能保存输入的键值对,但是不能保存他们输入的顺序,这时候可以借助Python的标准库collections里的orderedDict类 from collections import OrderedDict my_ordered_diction = OrderedDict() my_o ...
分类:
其他好文 时间:
2020-07-22 15:37:51
阅读次数:
63
🔨MySQL 8 在 Windows 上由 zip 安装 参考文档: mysql-5.7.21-winx64.zip安装教程 SET PASSWORD Statement sqlyog连接mysql错误码2058 步骤 下载解压,并把 bin 文件夹添加到 Path 系统环境变量中 新建 my.i ...
分类:
数据库 时间:
2020-07-22 15:29:01
阅读次数:
73
NLP——新闻文本处理:TASK1 赛题理解与nlp初识 1.数据读取 在竞赛主页下载好数据集利用pandas打开: #coding=utf-8 import pandas as pd #my_font = font_manager.FontProperties(fname="C:\Windows\ ...
分类:
其他好文 时间:
2020-07-21 23:13:12
阅读次数:
112
错误日志(Error log) # 错误日志默认是关闭的 # 默认路径是 $datadir/,默认的名字是'主机名.err' # 配置方式 [root@db02 ~]# vim /etc/my.cnf [mysqld] server_id=1 basedir=/usr/local/mysql dat ...
分类:
数据库 时间:
2020-07-21 23:12:39
阅读次数:
94
一、使用免密码登录 1.使用 #find / -name my.cfg 找到mysql配置文件 2.vim /etc/mysql/my.cfg (我的配置文件是这个路径,每个人的路径可能有所不同,用find查询后再编辑) 在[mysqld]设置下添加skip-grant-tables参数(跳过权限列 ...
分类:
数据库 时间:
2020-07-21 22:43:42
阅读次数:
91
一、Reading My girlfriend always complains. According to her, I should be more ambitious. I should work harder and earn more money. She also thinks I sh ...
分类:
其他好文 时间:
2020-07-21 22:40:49
阅读次数:
117
<Button Name="button" Content="Hello" Height="100" Width="200" Click="button_Click_2"> <Button.ContentTemplate> <DataTemplate> <Viewbox> <TextBlock>My ...
1、环境准备 (1)卸载自带的Mariadb 命令:rpm –qa|grep mariadb 查询已经安装的mariadb rpm –e –nodeps 文件名 卸载mariadb (2)创建配置文件my.cnf 命令:touch /etc/my.cnf (3)创建一个用户名为mysql的用户并加入 ...
分类:
数据库 时间:
2020-07-21 10:01:48
阅读次数:
97
引子 近期的工作中,遇到的功能需求,需要控制文字显示行数,超过就省略号显示。 Origin My GitHub 文字换行 一般文字行数控制用 css 就可以实现,但在 canvas 中不行。在网站查询资料,就可以发现需要程序控制文字换行,主要使用到的方法是 measureText(),这个方法会返回 ...
分类:
其他好文 时间:
2020-07-20 10:21:09
阅读次数:
70