首页 > 数据库技术 > 详细

MySQL基础 二

时间:2016-04-23 01:50:01      阅读:250      评论:0      收藏:0      [点我收藏+]

  用户管理

      1.      创建用户                     create user xxx identified by ‘password’;

         2.      删除用户                     drop user xxx;

         3.      重命名用户                 rename user xxx to xxxx;

         4.      修改当前用户密码     setpassword=password(‘xxxx’);

         5.      修改其他用户密码     setpassword for xxx =password(‘xxx’);

 

二  权限系统

    1.       连接权限

    2.       动作权限

                            权限级别:

    1.       全局

    2.       数据库

    3.       

    4.       

    5.       子程序

         Grant all privileges on *.* to ‘xxx’@’%’identified by ‘xxx’;

         Revoke all privileges on *.* from ‘xxx’@’xxx’identified by ‘xxx’;

简单备份

    1.       Mysqldum–uroot –p 需要备份的库>备份

    2.       Source 路径/备份

数据库编码

    1.       查询mysql支持的编码                  showcharacter set;

    2.       查询MySQL使用的编码                showvariables like ‘character%’;


MySQL基础 二

原文:http://gxblue.blog.51cto.com/11326567/1766891

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!