网络流24题|最小路径覆盖问题

时隔多年的by终于想起来更新博客了

算是疫情推动吧 争取每日/隔日更新一篇不拖更

今天的题

Hello World

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"

More info: Writing

Run server

1
$ hexo server

More info: Server

Generate static files

1
$ hexo generate

More info: Generating

Deploy to remote sites

1
$ hexo deploy

More info: Deployment

Mysql+vscode+wsl环境配置

0

安装vscode

安装wsl Ubuntu18.04(换源aliyun

安装mysql-server

1

先获得root权限

1
sudo su

wsl中输入

1
service mysql start

若出现

1
MySQL 5.7 No directory, logging in with HOME=/

then

1
2
3
service mysql stop
usermod -d /var/lib/mysql/ mysql
service mysql start

其中 /var/lib/mysql/ 处存储的是mysql的日志文件&数据库文件

usermod修改mysql 的登入目录为上述目录

然后可能会显示:

1
'Access denied for user 'root'@'localhost'

编辑 /etc/mysql/mysql.conf.d/mysqld.cnf 或者对应的mysql配置文件,

在[mysqld]下面添加:

1
skip-grant-tables

再次重启mysql,

1
mysql -uroot -p

直接回车跳过密码

1
2
ALTER USER 'root'@'localhost' IDENTIFIED BY mysql_native_password 'password';
flush privileges;

重启

1
service mysql restart

2

vscode安装mysql插件

1568863461052

选择

1568863484764

添加connection

1568863508590

输入password之后connect

即可成功

3

常用的mssql插件无法连接wsl 的mysql不知道为啥

反正就是连不上233

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×