Mysql数据库--1
1.DBMS : 数据库安装mysql8.0 2.数据库操作》linux mysql服务启动:service mysql start ==>1.数据库命令: ==》1.数据库连接命令: mysql -uroot -p1234 -P3306 (-u 用户名 -p 密码 -P 端口号) ==>2.数据库修改密码: update mysql.user set authentication_string=password('123456') plugin='mysql-native-password' where user='root' and Host='localhost' ; ---修改密码 flush privilege; -----刷新权限 ======== ---查看数据库: show databases; ---切换数据库: use database name; ---查看数据库所有表 show tables; ---显示表段信息: describe table name; --- 创建数据库: create database table name; --- 退出数据库: exit ---数据库注释单行-- ... ---多行/*.... */ 来源: https://www.cnblogs.com/chencn/p/12298472.html