基本的命令行操作

简介: 基本的命令行操作
mysql -uroot -p123456 --连接数据库
update mysql user set authentication_staring=password('123456') where user='root' and Host = 'localhost'; --修改密码
flush privileges;  --刷新版权
-----------------------------------------
--所有的语句使用;结尾
show databases; --查看所有的数据库
mysql> use school --切换数据库 use 数据库名
Database changed
show tables;--查看数据库中所有的表
describe student; --显示数据库中所有表的信息
create database westos; --创建一个数据库
exit;--退出连接
--单行注释
相关文章
|
15天前
|
Web App开发 缓存 Ubuntu
Ubuntu系统的基础操作和使用
Ubuntu系统的基础操作和使用
27 2
|
3月前
|
Ubuntu 数据安全/隐私保护
服务器Ubuntu系统安装图形化界面
服务器Ubuntu系统安装图形化界面
|
8月前
|
数据安全/隐私保护
liunx-3
liunx语句
33 1
|
8月前
|
Unix Linux
liunx-2
liunx语句
39 0
|
8月前
|
数据库
liunx-6
liunx
20 1
|
8月前
|
存储
|
8月前
|
安全 Linux Windows
liunx-7
liunx
36 2
|
8月前
|
存储 Linux 数据库
liunx
liunx语句
39 1
|
11月前
|
弹性计算 数据可视化 Linux
centeros8 图形化界面设置
本文将介绍centerOS8的图形化界面切换安装操作!
276 0
|
Linux
Linux安装xwindow图形界面
Linux安装xwindow图形界面
196 0
Linux安装xwindow图形界面