摘要: #创建数据库aa create database aa; #显示所有数据库 show databases; #切换到"王者荣耀"数据库use王者荣耀; #删除数据库aa drop database aa; 阅读全文
posted @ 2021-09-07 12:52 执念; 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 排序:order by 分组:group by having:条件语句,(和where 类似)限制分行:limit去重:distinct 倒序:desc升序:asc创建:create数据库: database如果不存在: if not exists设置字符: character set utf8显示 阅读全文
posted @ 2021-09-07 12:51 执念; 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 批量创建表 for i in {1..10}; do mysql -h 192.168.245.189 -u root -P 3306 王者荣耀 -p123 -e "create table 张三$i ( 姓名 char(10),编号 int(10))" ; done 1. 批量删除表 for i 阅读全文
posted @ 2021-09-07 12:48 执念; 阅读(46) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-09-07 12:46 执念; 阅读(18) 评论(0) 推荐(0) 编辑
摘要: 虚拟机: ssh test@192.168.245.189 密码:testmysql: mysql -h 192.168.245.189 -u root -P 3306 -p123 数据库查询语句汇总 SELECT * FROM game; SELECT * FROM 王者荣耀.game AS zz 阅读全文
posted @ 2021-09-07 12:40 执念; 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 1、查询现在所有的网卡 [root@localhost ~]# ip addr 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:0 阅读全文
posted @ 2021-06-12 20:58 执念; 阅读(568) 评论(0) 推荐(0) 编辑
摘要: 1、查询系统现在的硬盘数量。 [root@localhost ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 20G 0 disk ├─sda1 8:1 0 1G 0 part /boot └─sda2 8:2 0 19G 0 阅读全文
posted @ 2021-06-12 20:54 执念; 阅读(520) 评论(0) 推荐(0) 编辑
摘要: #进入到网卡配置文件所在的目录[root@localhost /]# cd /etc/sysconfig/network-scripts/#复制ens33的网卡作为模板。[root@localhost network-scripts]# cp ifcfg-ens33 ifcfg-ens37#修改模板 阅读全文
posted @ 2021-06-12 20:50 执念; 阅读(1073) 评论(0) 推荐(0) 编辑
摘要: #进入到yum仓库文件所在的位置。 cd /etc/yum.repos.d/ #创建或者修改仓库配置文件 vi ftp.repo [centos] #yum仓库名称 name=centos #仓库注解 baseurl=http://192.168.245.152/centos/7/os/x86_64 阅读全文
posted @ 2021-06-12 20:41 执念; 阅读(48) 评论(0) 推荐(0) 编辑
摘要: @charset "utf-8";/* CSS Document */body {font-family:"微软雅黑" ; font-size:12px; color:#000;}*{margin:0 ; padding:0 ; list-style:none; border:0;} .banner 阅读全文
posted @ 2021-06-08 09:38 执念; 阅读(31) 评论(0) 推荐(0) 编辑