From 26d45fccbebd25b69b87cde1f404ff5f314aed59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E9=9B=85=E5=A9=B7?= <11802116+chen-yatin@user.noreply.gitee.com> Date: Wed, 3 Jul 2024 08:17:54 +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 --- ...37\272\346\234\254\345\221\275\344\273\244.md" | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 "\351\231\210\351\233\205\345\251\267/20240702-MySQL\347\232\204\350\277\234\347\250\213\347\231\273\345\205\245\344\270\216\345\237\272\346\234\254\345\221\275\344\273\244.md" diff --git "a/\351\231\210\351\233\205\345\251\267/20240702-MySQL\347\232\204\350\277\234\347\250\213\347\231\273\345\205\245\344\270\216\345\237\272\346\234\254\345\221\275\344\273\244.md" "b/\351\231\210\351\233\205\345\251\267/20240702-MySQL\347\232\204\350\277\234\347\250\213\347\231\273\345\205\245\344\270\216\345\237\272\346\234\254\345\221\275\344\273\244.md" new file mode 100644 index 0000000..717156a --- /dev/null +++ "b/\351\231\210\351\233\205\345\251\267/20240702-MySQL\347\232\204\350\277\234\347\250\213\347\231\273\345\205\245\344\270\216\345\237\272\346\234\254\345\221\275\344\273\244.md" @@ -0,0 +1,15 @@ +### mysql远程登录 ++ 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