Mac mysql shell
来源:互联网 发布:php集成开发环境 编辑:程序博客网 时间:2024/05/24 07:12
xampp mysql路径
cd /applications/xampp/bin
系统 mysql路径
cd /usr/local/mysql/bin
连接数据库
./mysql -u root -p
显示端口号
show global variables like 'port';
修改密码
mysql> set password for root@localhost = password('123');退出
exit
表 字段
增
create table 表名(
id int(3),
name varchar(8),
password varchar(20)
);
alter table 哪个个表增 add email varchar(25) not null;
insert into tbl_user values (1,'shawuer','123456');(插入数据)
删
drop table 表名;
alter table 哪个表 drop 的哪个字段;
改
rename table 原表名 to 新表名;
alter table 哪个表的字段 change 原字段名 新字段名 int(3);
查
show tables from shawuerdb; (显示shawuerdb数据库的所有表)
describe tbl_user;(显示tbl_user表的所有字段)
select *from tbl_user; (查看tbl_user表内容)
阅读全文
0 0
- Mac mysql shell
- mac 卸载mysql shell脚本
- Mac 下安装MySQL后, shell不能识别MySQL命令
- Mac Shell
- mac shell
- Mac MAMP 使用终端shell操作mysql数据库
- mac mysql
- mac mysql
- Mac~Mysql
- Mac mysql
- mac mysql
- 配置mac 默认shell
- Mac shell 颜色配置
- shell 取mac
- Mac shell 脚本 笔记
- mac shell环境变量设置
- shell获取mac地址
- mac shell 设置dns
- vue-router
- Android Studio 上JNI开发
- Hadoop基本介绍与环境配置(笔记1)
- better-scroll插件初使用
- Mac 破解CrossOver的方法
- Mac mysql shell
- iOS
- 最短的名字 CSU
- 7:----(2) CSS3中的变形--扭曲 skew()
- Treasure Exploration 【传递闭包】+【最小顶点覆盖】
- python中的datetime模块
- Hadoop海量存储之HDFS基础入门(笔记2)
- 如何阅读别人的源代码
- 图像滤波---双边滤波和引导滤波的基本原理