1.在root权限下登录mysql 2.进入mysql库 mysql>use mysql 3.查看root用户权限 mysql>select User,Host,plugin from user; 4.将root用户的auth_sock改为mysql_native_password mysql>up ...
分类:
数据库 时间:
2021-04-27 14:42:37
阅读次数:
0
Master配置 global_defs { notification_email { root@localhost } notification_email_from keeplived@localhost smtp_server 127.0.0.1 smtp_connect_timeout 30 ...
分类:
其他好文 时间:
2021-04-27 14:42:00
阅读次数:
0
select a.id,a.userid,c.openid from ko_answer_score a left join (select userid from ko_answer_log where answer_time > '2018-02-24 00:00:00' and answer_ ...
分类:
其他好文 时间:
2021-04-27 14:38:46
阅读次数:
0
P1972 [SDOI2009]HH的项链 莫队模板题,但是有点点卡常,需要用一些技巧进行优化 (1)奇偶优化 (2)快读快写 (3)把块的大小开大一点取$n^{0.5+}$效果会好一些 (4)把 add 和 del 函数展开,不以函数的形式,会块一点点,但并不会快太多 // Created by ...
分类:
其他好文 时间:
2021-04-27 14:37:58
阅读次数:
0
上一篇讲了用 python 提取字符串中的数字,这次用VBA来事项。总体思路和 python 是一样的,代码如下: Option Explicit Sub GetNumbers() Dim from_string As String, convert_numbers As String Dim i, ...
分类:
编程语言 时间:
2021-04-27 14:37:45
阅读次数:
0
字符串时间转datetime时间 from datetime import datetime b='2021-04-26 11:23:56' c = datetime.strptime(b, "%Y-%m-%d %H:%M:%S") print(c) # datetime.datetime(2021 ...
分类:
编程语言 时间:
2021-04-27 14:35:01
阅读次数:
0
ESLint模式下for in遍历对象会报错,可以这样解决: let val = { shu: [1, 2, 3] }; for (let item in val) { if (val.hasOwnProperty(item)) { console.log(item); } } 因为我们在遍历一个对 ...
分类:
移动开发 时间:
2021-04-27 14:25:28
阅读次数:
0
SQL:structure query language select:查询,从表中查询符合条件的数据 select 列 顺序,格式 from 表 where 条件 group by 列 having order by 列 查询表中所有的列,用* select * from emp 查询表中具体的列 ...
分类:
数据库 时间:
2021-04-27 14:15:06
阅读次数:
0
最小值点有4个 import numpy as np from mpl_toolkits.mplot3d import Axes3D from matplotlib import pyplot as plt import torch def himmelblau(x): return (x[0] * ...
分类:
其他好文 时间:
2021-04-27 14:12:10
阅读次数:
0
在Ubuntu平台安装QT时,遇到Could not load the Qt platform plugin "xcb" ...
分类:
系统相关 时间:
2021-04-26 13:57:35
阅读次数:
0