mysql基本操作

时间:2019-07-09 18:13:46   收藏:0   阅读:101

安装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;

 

原文:https://www.cnblogs.com/573177885qq/p/11158742.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!