mysql基本操作

安装mysql:https://zhuanlan.zhihu.com/p/31296214

基本操作参考:https://www.runoob.com/mysql/mysql-create-database.html

pymysql基本操作:https://www.runoob.com/python3/python3-mysql.html

 

补充:

显示某个字段(列): select  day(字段) from test(表);

删除数据库:drop database testDB;

授权给所有用户:grant all privileges on *.* to root@'%'identified by 'password(密码)';

       更多授权操作参考:https://www.cnblogs.com/wanghuaijun/p/5802209.html

显示表结构:describe table;

删除用户:drop user testuser @localhost;

 

posted @ 2019-07-09 17:18  牧马人夏峥  阅读(111)  评论(0)    收藏  举报