时间:2021-07-01 10:21:17 帮助过:34人阅读
命令行连接【命令】
mysql -uroot -p123456 	--连接数据库
update mysql.user set authentication_string=password(‘123456‘) where user=‘root‘ and Host = ‘localhost‘; 			--修改用户密码
-----------------
--所有的语句都使用 ; 结尾
show databases; 		--查看所有的数据库
mysql> use school 		--切换数据库
Database changed
show tables; 			--查看数据库中所有的表
describe student; 		--显示数据库中所有表的信息
create database westos; --层级一个数据库
exit; 					--退出连接
--单行注释
/*   (多行注释)
hello
hell
hel
he
*/
注意:往后学习都是在第三方数据库管理工具,此处只是熟悉下命令行操作!
? 程序猿的部分种类:CV程序猿、API程序猿、CRUD程序猿
MySQL基本命令行操作
标签:HERE ase 学习 cal 注释 lock api 用户 第三方