linux和mysql基础指令

Linux中nano和vim读可以打开记事文件。

ifdown ens33

ifup ens33

关闭,开启网络

复制代码
rm -r lesson1

gcc -o code1 code1.c

编译c语言代码

复制代码
./code1

执行c语言代码

复制代码
rm -r dir

删除文件夹

复制代码
mysql> show databases
    -> ^C
mysql> show databases;
+--------------------+
| Database           |
+--------------------+
| information_schema |
| mysql              |
| online_edu         |
| performance_schema |
| sys                |
| test               |
+--------------------+
6 rows in set (0.08 sec)

展示数据库

复制代码
mysql> use test;
Database changed
mysql> create table tb_user(
    -> id int comment'编号',
    -> name varchar(50) comment'姓名',
    -> age int comment'年龄',
    -> gender varchar(1) comment'性别'
    -> );

使用test数据库,使用tb_user表。

复制代码
mysql> desc tb_user;

查看表结构。

课设中遇到的问题:

【异常】JDK21报错NoSuchFieldError: Class com.sun.tools.javac.tree.JCTree$JCImport does not have member fie

[【异常】JDK21报错NoSuchFieldError: Class com.sun.tools.javac.tree.JCTreeJCImport does not have member fie_java: java.lang.nosuchfielderror: class com.sun.to-CSDN博客![icon-default.png?t=N7T8](https://csdnimg.cn/release/blog_editor_html/release2.3.6/ckeditor/plugins/CsdnLink/icons/icon-default.png)https://blog.csdn.net/G971005287W/article/details/133350154](https://blog.csdn.net/G971005287W/article/details/133350154 "【异常】JDK21报错NoSuchFieldError: Class com.sun.tools.javac.tree.JCTreeJCImport does not have member fie_java: java.lang.nosuchfielderror: class com.sun.to-CSDN博客")

相关推荐
m0_528749009 分钟前
C语言错误处理宏两个比较重要的
java·linux·算法
Jia ming18 分钟前
Linux性能分析工具perf全面解析
linux·性能优化·perf
珠穆峰31 分钟前
linux find 命令使用
linux·运维·服务器
没有bug.的程序员39 分钟前
服务网格(Istio)与传统微服务深度对垒:流量治理内核、代码侵入性博弈与运维收益实战指南
java·运维·微服务·istio·流量治理内核·代码侵入性
是Dream呀1 小时前
自动化打造信息影响力:用 Web Unlocker 和 n8n 打造你的自动化资讯系统
运维·前端·爬虫·自动化
JinchuanMaster1 小时前
Ubuntu20.04安装50系显卡驱动[不黑屏版本]
linux·人工智能·深度学习·ubuntu·机器学习·机器人·gpu算力
蜜汁小强1 小时前
为 Github 创建本地 .ssh 关联 (RSA 以支持老系统)
运维·ssh·github
中草药z1 小时前
【Linux】拆解 Linux 容器化核心:Namespace 隔离 + cgroups 资源控制,附 LXC 容器生命周期实战
运维·docker·容器·虚拟化·namespace·lxc·cgroups
草莓熊Lotso1 小时前
Linux 程序地址空间深度解析:虚拟地址背后的真相
java·linux·运维·服务器·开发语言·c++·人工智能