From 964551bb504aa49dc841450316ca14954ad00092 Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 2 Jul 2024 16:32:12 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AC=94=E8=AE=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../20240702MySQL.md" | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 "\345\215\242\347\216\211\345\215\216/20240702MySQL.md" diff --git "a/\345\215\242\347\216\211\345\215\216/20240702MySQL.md" "b/\345\215\242\347\216\211\345\215\216/20240702MySQL.md" new file mode 100644 index 0000000..cc4ce54 --- /dev/null +++ "b/\345\215\242\347\216\211\345\215\216/20240702MySQL.md" @@ -0,0 +1,17 @@ +## 远程登录 + +update user set host='%' where user='root'; + +grant all on root.* to 'root'@'%'; + +## 增删改查 + +创建: create(创建数据库) + +增:insert(插入表数据) + +删:drop、delete(删除表、删除表数据) + +改:update、alter(更改表数据、插入新字段) + +查:select、show、describe/desc(查询表数据、查看所有表、查看表结构) \ No newline at end of file -- Gitee