摘要: import mysql.connector mydb = mysql.connector.connect( host="192.168.1.196", # 数据库主机地址 user="root", # 数据库用户名 passwd="localsense" # 数据库密码 ) mycursor = 阅读全文
posted @ 2020-11-10 15:26 Loveyinran 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 1、删除文件夹 sudo rm -rf xxxx 2、修改文件夹下所有文件的权限 sudo chmod -R 777 xxxx 阅读全文
posted @ 2020-11-10 15:08 Loveyinran 阅读(810) 评论(0) 推荐(0) 编辑
摘要: 压缩: tar -zcvf tsingoal.tar.gz ./tsingoal 把当前目录的tsingoal文件压缩为 tsingoal.tar.gz文件 解压: tar -zxvf tsingoal.tar.gz 把tsingoal.tar.gz文件解压到当前目录 阅读全文
posted @ 2020-11-05 15:11 Loveyinran 阅读(672) 评论(0) 推荐(0) 编辑
摘要: 在解压tar.gz文件的时候报错 [Sun@localhost Downloads]$ tar -zxvf clion-141.351.4.tar.gz gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error i 阅读全文
posted @ 2020-11-03 13:13 Loveyinran 阅读(570) 评论(0) 推荐(0) 编辑
摘要: Docker安装 1、更新包列表 sudo apt update 2、安装必须的包 sudo apt install apt-transport-https ca-certificates curl software-properties-common 3、为国内的 azure 仓库添加 GPG K 阅读全文
posted @ 2020-10-31 18:29 Loveyinran 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 1、执行更新命令: sudo apt upgrade 2、执行mysql安装命令,出现[Y/n]时输入Y: sudo apt install mysql-server 3、执行查看mysql服务状态命令,如下图所示是运行状态: sudo service mysql status 4、此时安装的mys 阅读全文
posted @ 2020-10-31 17:09 Loveyinran 阅读(452) 评论(0) 推荐(0) 编辑