运维
lanxingmo
这个作者很懒,什么都没留下…
展开
-
mysql Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535
Row size too large. The maximum row size for the used table type, not counting BLOBs, is 65535.行的长度不能超过65535,即列的大小总和除了BLOBs longtext类型,总大小不能超过65535,修改列的大小,并将部分列修改为longtext...原创 2021-01-14 12:29:53 · 387 阅读 · 0 评论 -
Coredns CrashLoopBackOff
Failed to list *v1.Namespace: Get https://10.96.0.1:443/api/v1/namespaces?limit=500&resourceVersion=0: dial tcp 10.96.0.1:443: connect: no route to host路由问题:iptables -L解决:先缩减kubectl scale --replicas=0 deploy/coredns -n kube-system再增加kub...原创 2020-10-09 16:21:02 · 709 阅读 · 0 评论 -
redis批量删除键
~/redis-cli -h 127.0.0.1 -a passwd --raw keys "IM_GROUP_MEMBERS_*" | xargs ~/redis-cli -h 127.0.0.1 -a passwd del原创 2020-08-20 16:59:31 · 211 阅读 · 0 评论 -
group by sql_mode=only_full_group_by 问题
mysql> select id from topic group by update_time having count(update_time) > 1;ERROR 1055 (42000): Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'imdb.topic.id' which is not functionally dependent on co...原创 2020-08-14 15:34:03 · 114 阅读 · 0 评论 -
mysql修改时间列精度
6位小数:CREATE TABLE `topic2`(`update_time` timestamp(6) NOT NULL DEFAULT CURRENT_TIMESTAMP(6) ON UPDATE CURRENT_TIMESTAMP(6),`detail_location` varchar(1024) DEFAULT '' COMMENT '详细地址');mysql> insert into topic2(detail_location)values('dddd');Query OK原创 2020-08-14 14:41:10 · 413 阅读 · 0 评论 -
删除指定前缀的镜像
docker images |grep xxx | awk -F' ' '{print $1}' | xargs docker rmi原创 2020-07-07 11:34:08 · 981 阅读 · 0 评论 -
docker “exec: \“-v\“: executable file not found in $PATH“.
挂载参数位置问题如修改挂载参数顺序即可docker run -it -v /hostpath:/work/conf --name test8 test原创 2020-07-02 10:33:56 · 5389 阅读 · 0 评论 -
修改主机名
hostname xxxvi /etc/hostnamexxxx原创 2020-06-15 19:11:58 · 139 阅读 · 0 评论 -
git 强制推送本地分支到远程
git checkoutdev-usergit push -f origin dev-user原创 2020-05-20 16:00:34 · 4061 阅读 · 0 评论 -
mysql导表数据
导出表结构及数据mysqldump -uroot -hxxx.com -pxxx dbname tablename > tablename.txt仅导出表结构加 -dmysqldump -uroot -hxxx.com -pxxx -d dbname tablename > tablename.txt备份所有数据库mysqldump -u root -p --all-databases > database_dump.txt导出库mysqldump -u...原创 2020-05-11 16:17:19 · 127 阅读 · 0 评论