2
docker 下操作 mysql
source link: https://yjyj.net/learn/6407.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
docker 下操作 mysql
2023-05-10
当然只要一条命令:docker exec -it mysql bash
接着链接数据库mysql -uroot -p123456
查看数据库show databases;
切换数据库use 数据库名;
查看正在使用的数据库select database();
查看表show tables;
查看表结构desc xxx;
更新表记录update 表名 set 字段名=值,字段名=值; update 表名 set 字段名=值,字段名=值 where 条件;
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK