摘要: mysql常用sql语句的练习笔记,方便不记得时,翻出来看看 #一、mysql操作语句 ##1.1 操作命令 + grant all privileges on . to '用户名'@'主机' identified by '密码';创建用户 + show databases; + 如果数据库太多可以 阅读全文
posted @ 2020-06-06 16:39 千年寒冰火 阅读(394) 评论(0) 推荐(0) 编辑
摘要: 今天在ubuntu1804上安装python的模块,mysqlclient报错了,记录下解决办法 ##mysqlclient是什么 mysqlclient是python连接MySQL的数据库驱动,使用c语言编写的。 python还有一个pymysql也是连接mysql数据的,这两个模块都同一个作者, 阅读全文
posted @ 2020-04-18 17:41 千年寒冰火 阅读(444) 评论(0) 推荐(0) 编辑
摘要: ubuntu安装了samba服务器,windows可以发现共享目录,但是一打开目录报错,window提示,没有权限 查看samba的用户日志,显示权限不够,下面是配置信息 也授予了/data/share为samba的用户及权限 最后发现是,因为data这个目录设置0754,修改为0777就可以了 也 阅读全文
posted @ 2024-06-17 22:26 千年寒冰火 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 安装multipass后,选择的windows自带的hyperv 执行命令:multipass launch -n znxs01报错:launch failed: Remote "" is unknown or unreachable 网上找了个解决办法,全是安装virturalbox,各种操作,试 阅读全文
posted @ 2024-06-13 15:14 千年寒冰火 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 一个问题找了很久,网上没有现成的答案,我来写一个,方便再遇到的人 一、问题 1. ollama是使用官方 curl -fsSL https://ollama.com/install.sh | sh 安装的2. open-webui是docker启动,docker正常启动,使用github推荐的 # 阅读全文
posted @ 2024-06-06 15:49 千年寒冰火 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 1、下载正确版本的deb安装包,首页上的是1.1.0版本,不能用,需要下载6.0的地址:http://cidian.youdao.com/multi.html 可以直接点击这个地址下载deb文件 youdao-dict_6.0.0-ubuntu-amd64.deb 2、执行安装命令,sudo dpk 阅读全文
posted @ 2023-01-29 17:27 千年寒冰火 阅读(3642) 评论(13) 推荐(2) 编辑
摘要: 这是因为使用reqwest的包,用到了openssl的库。 按照提示"Make sure you also have the development packages of openssl installed. libssl-dev on Ubuntu or openssl-devel on Fed 阅读全文
posted @ 2022-12-30 21:16 千年寒冰火 阅读(1207) 评论(0) 推荐(0) 编辑
摘要: Error response from daemon: driver failed programming external connectivity on endpoint xxx: Bind for 0.0.0.0:9005 failed: port is already allocated 报 阅读全文
posted @ 2022-09-24 17:54 千年寒冰火 阅读(674) 评论(0) 推荐(0) 编辑
摘要: 在windows下做rust的开发,在使用libp2p这个库时,cargo run时卡在一个库的安装使用上 如果你使用的vscode的开发,插件用的是rust-analyzer,也会一直提示无法安装相关的包,代码中无法提示libp2p相关的代码提示 错误信息如下: failed to run cus 阅读全文
posted @ 2022-07-10 19:45 千年寒冰火 阅读(972) 评论(0) 推荐(0) 编辑
摘要: 一、下载安装文件 1、打开rust官网,rust-lang.org,点击菜单【install】,下载rustup-init.exe文件,然后 二、运行安装文件 1.启动rust安装器,输入y回车 2. 如果安装vc++编译,一路默认设置就好 vc++编译安装,请参考文章:https://www.cn 阅读全文
posted @ 2022-06-25 18:08 千年寒冰火 阅读(5978) 评论(0) 推荐(1) 编辑
摘要: 为什么需要在win10下安装gcc编译器 rust和go等编译型语言,需要用到gcc编译器 在linux下,自带gcc编译器,所以,安装rust和go的相关依赖时没有问题 在windows下,默认是没有gcc的,所以,需要安装windows下的gcc的编译器,mingw 例如,错误exec: "gc 阅读全文
posted @ 2022-06-25 17:57 千年寒冰火 阅读(4111) 评论(0) 推荐(0) 编辑
摘要: cargo new新建的项目,在项目简单是都正常运行不报错。 但引入包多了之后,特别是加入async的之后,就报错 %1 不是有效的 Win32 应用程序 os error 193 网上查了各种资料,都找不到答案。今天,偶然发现同样的程序,一台电脑正常运行,一台报错。 对比了两台的环境,都是wind 阅读全文
posted @ 2022-06-25 17:43 千年寒冰火 阅读(476) 评论(0) 推荐(0) 编辑