MySQL 8.0数据库创建数据库、添加用户和授权

mysql8 有新的安全要求,不能像之前的版本那样一次性创建用户并授权,需要先创建用户,再进行授权操作

1.创建数据库

CREATE DATABASE db_name CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;

2.创建用户:

create user 'username'@'host' …

git clone/pull/push 常见报错

1.server certificate verification failed

server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none

解决方案:

export GIT_SSL_NO_VERIFY=1 …

使用OpenCV定位小图在大图中的位置

pip3 install opencv-python
pip3 install aircv
# -*- coding: utf-8 -*-

import aircv as ac …

Mysql创建或导入函数时报错

在MySQL创建或者导入用户自定义函数时,报出以下错误:

ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or READS SQL …

Django3.0开发“'X-Frame-Options' to 'deny'”报错

一、起因

在使用Django3.0开发博客的过程中出现报错

Refused to display 'URL' in a frame because it set 'X-Frame-Options' to 'deny' …