时隔多年的by终于想起来更新博客了
算是疫情推动吧 争取每日/隔日更新一篇不拖更
今天的题
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.
1 | $ hexo new "My New Post" |
More info: Writing
1 | $ hexo server |
More info: Server
1 | $ hexo generate |
More info: Generating
1 | $ hexo deploy |
More info: Deployment
安装vscode
安装wsl Ubuntu18.04(换源aliyun
安装mysql-server
先获得root权限
1 | sudo su |
wsl中输入
1 | service mysql start |
若出现
1 | MySQL 5.7 No directory, logging in with HOME=/ |
then
1 | service mysql stop |
其中 /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 | ALTER USER 'root'@'localhost' IDENTIFIED BY mysql_native_password 'password'; |
重启
1 | service mysql restart |
vscode安装mysql插件
选择
添加connection
输入password之后connect
即可成功
常用的mssql插件无法连接wsl 的mysql不知道为啥
反正就是连不上233
Update your browser to view this website correctly. Update my browser now