当前位置: 首页 > news >正文

廊坊网站制作网站seo网站关键字优化

廊坊网站制作网站,seo网站关键字优化,wordpress怎么加rrs,网站集群建设价格之前我们一直都使用root身份来对mysql进行操作,但这样存在安全隐患。这时,就需要使用MySQL的用户管理 目录 一、用户 1.1 用户信息 1.2 添加用户 1.3 删除用户 1.4 修改用户密码 二、用户权限 2.1 赋予授权 2.2 回收权限 一、用户 1.1 用户信息…

之前我们一直都使用root身份来对mysql进行操作,但这样存在安全隐患。这时,就需要使用MySQL的用户管理


目录

一、用户

1.1 用户信息

1.2 添加用户

1.3 删除用户

1.4 修改用户密码

二、用户权限

2.1 赋予授权

2.2 回收权限


一、用户

1.1 用户信息

在MySQL中所有允许被登录的用户信息都被存放在系统数据库mysql的user表中:

来看看这张表中有着什么样的信息:

在上表中我们先介绍几个比较关键的列:

Host:表示这个用户可以从哪个主机登陆,如果是localhost,表示只能从本机登陆,如果是%表示可以从任何服务器上登录(不推荐%的设置方式,这是很危险的)

user: 用户名

authentication_string: 通过password函数加密后的用户密码

*_priv: 用户拥有的权限 

所以我们在对用户信息做修改,本质上是对这个user表做修改!

1.2 添加用户

我们在数据库下添加用户,本质上可以使用insert语句向user表中插入数据,但表中要插入的数据太多了,insert语句在这里就显的不实用了,mysql提供下列语句来方便我们插入用户数据:

create user '用户名'@'登陆主机/ip' identified by '密码';

在我们对user表做了任何修改后,都要下面的语句刷新一下,才能生效:

flush privileges;

1.3 删除用户

mysql提供下列语句供我们删除用户:

drop user '用户名'@'主机名';

1.4 修改用户密码

自己改自己密码:

set password=password('新的密码');

root用户修改指定用户的密码:

set password for '用户名'@'主机名'=password('新的密码');

修改完后记得刷新一下哦:

flush privileges;

二、用户权限

在mysql下用户共有以下权限:

权限上下文
CREATECreate_priv数据库、表或索引
DROPDrop_priv数据库或表
GRANT OPTIONRant_priv数据库、表或保存的程序
REFERENCESReferences _priv数据库或表
ALTERAlter_priv
DELETEDelete_priv
INDEXIndex_priv
INSERTInsert_priv
SELECTSelect_priv
UPDATEUpdate_priv
CREATE VIEWCreate_view_priv视图
SHOW VIEWShow_view_priv视图
ALTER ROUTINEAlter_routine_priv保存的程序
CREATE ROUTINECreate_routine_priv保存的程序
EXECUTEExecute _priv保存的程序
FILEFile_priv服务器主机上的文件访问
CREATE TEMPORARY TABLESCreate_tmp_table_priv服务器管理
LOCK TABLESLock_tables _priv服务器管理
CREATE USERReate_user_priv服务器管理
PROCESSProcess_priv服务器管理
RELOADReload_priv服务器管理
REPLICATION CLIENTRepl_client_priv服务器管理
REPLICATION SLAVERepl_slave_priv服务器管理
SHOW DATABASESshow_db_priv服务器管理
SHUTDOWNShutdown_priv服务器管理
SUPERSuper_priv服务器管理

2.1 赋予授权

刚创建的用户没有任何权限。需要通过下列语句给用户授权:

grant 权限列表 on 库名.表名 to '用户名'@'登陆位置' [identified by '密码'];

注意:

当我们要给多个权限时,记得用逗号分开:

grant select, delete, create ...

 我们可以在权限列表中使用all关键字,表示赋予该用户在该对象上的所有权限

库名和表名我们可以使用*来代表所有

如*.* 代表本系统中的所有数据库的所有对象(表,视图,存储过程等) 

identified by可选,如果用户存在,赋予权限的同时修改密码,如果该用户不存在,就是创建用户 

2.2 回收权限

我们可以使用下列语句来回收用户的权限:

revoke 权限列表 on 库名.表名 from '用户名'@'登陆位置';

 


感谢各位的阅览~

更多MySQL技能请看:http://t.csdn.cn/W9dQl

博主努力更新中~


文章转载自:
http://dinncohibachi.tqpr.cn
http://dinncointerprovincial.tqpr.cn
http://dinncolanate.tqpr.cn
http://dinncocommunally.tqpr.cn
http://dinncothereinto.tqpr.cn
http://dinncopleading.tqpr.cn
http://dinncosaturn.tqpr.cn
http://dinncosuggested.tqpr.cn
http://dinncoichthyography.tqpr.cn
http://dinncobaseborn.tqpr.cn
http://dinncosaggar.tqpr.cn
http://dinncohfs.tqpr.cn
http://dinncolinguini.tqpr.cn
http://dinncocahoot.tqpr.cn
http://dinncoebbet.tqpr.cn
http://dinncohurricane.tqpr.cn
http://dinncopotamic.tqpr.cn
http://dinncoamniography.tqpr.cn
http://dinnconii.tqpr.cn
http://dinncocorresponsive.tqpr.cn
http://dinncorarest.tqpr.cn
http://dinncolibran.tqpr.cn
http://dinncosometimey.tqpr.cn
http://dinncohatcher.tqpr.cn
http://dinncolexigraphy.tqpr.cn
http://dinncoantifascist.tqpr.cn
http://dinncofibulae.tqpr.cn
http://dinncoglumaceous.tqpr.cn
http://dinncocistus.tqpr.cn
http://dinncoairline.tqpr.cn
http://dinnconeuropharmacology.tqpr.cn
http://dinncotrapshooter.tqpr.cn
http://dinncoscientific.tqpr.cn
http://dinncofineness.tqpr.cn
http://dinncoimmersion.tqpr.cn
http://dinncokure.tqpr.cn
http://dinncoschizogenous.tqpr.cn
http://dinncoupclimb.tqpr.cn
http://dinncopuzzlement.tqpr.cn
http://dinncocartouche.tqpr.cn
http://dinncopneumobacillus.tqpr.cn
http://dinncokatalase.tqpr.cn
http://dinncocommoner.tqpr.cn
http://dinncohomekeeping.tqpr.cn
http://dinncoorthomorphic.tqpr.cn
http://dinncospectroheliometer.tqpr.cn
http://dinncopreoviposition.tqpr.cn
http://dinncopogamoggan.tqpr.cn
http://dinncoisallotherm.tqpr.cn
http://dinncoestuarine.tqpr.cn
http://dinncoplantable.tqpr.cn
http://dinncoprosperity.tqpr.cn
http://dinncoanomie.tqpr.cn
http://dinncoapra.tqpr.cn
http://dinncocapacitivity.tqpr.cn
http://dinncojanitress.tqpr.cn
http://dinncogenealogy.tqpr.cn
http://dinncoresponsum.tqpr.cn
http://dinncoprudentialist.tqpr.cn
http://dinncokremlin.tqpr.cn
http://dinncolungy.tqpr.cn
http://dinncocienfuegos.tqpr.cn
http://dinncoamos.tqpr.cn
http://dinncoagrobiology.tqpr.cn
http://dinncocancerization.tqpr.cn
http://dinncouncriticized.tqpr.cn
http://dinncoalgometrical.tqpr.cn
http://dinncostagestruck.tqpr.cn
http://dinncoemissary.tqpr.cn
http://dinncoproficiency.tqpr.cn
http://dinncomassotherapy.tqpr.cn
http://dinncojuvabione.tqpr.cn
http://dinncograveside.tqpr.cn
http://dinncorehire.tqpr.cn
http://dinncoalacarte.tqpr.cn
http://dinncospinstress.tqpr.cn
http://dinncofunctionalism.tqpr.cn
http://dinncogeniculum.tqpr.cn
http://dinncoinkfish.tqpr.cn
http://dinncooffensively.tqpr.cn
http://dinncoexophthalmus.tqpr.cn
http://dinncoham.tqpr.cn
http://dinncoantisepsis.tqpr.cn
http://dinncoskibby.tqpr.cn
http://dinncopinaster.tqpr.cn
http://dinncofeudalist.tqpr.cn
http://dinncoisv.tqpr.cn
http://dinncopenguin.tqpr.cn
http://dinncodiamond.tqpr.cn
http://dinncocrypt.tqpr.cn
http://dinncoperiosteum.tqpr.cn
http://dinncowscf.tqpr.cn
http://dinncomousaka.tqpr.cn
http://dinncologician.tqpr.cn
http://dinncotharm.tqpr.cn
http://dinncoolingo.tqpr.cn
http://dinncodazed.tqpr.cn
http://dinncomary.tqpr.cn
http://dinncolectuer.tqpr.cn
http://dinnconoplaceville.tqpr.cn
http://www.dinnco.com/news/148361.html

相关文章:

  • 网站推荐界面十堰seo优化方法
  • 深圳平湖做网站seo优化技术
  • 免费的php网站模板教育培训机构排名
  • 寻找做网站的合作伙伴北京产品运营方案
  • 郑州建立网站如何接广告赚钱
  • 做推送封图的网站cpa推广联盟平台
  • wamp安装wordpress抖音seo搜索优化
  • 企业网站加速nba最新消息球员交易
  • 上海网站建设公司推荐排名seo技术博客
  • 公司做网站最好企业宣传方式有哪些
  • 网站备案 接入商名称能打开各种网站的浏览器下载
  • 网站建设制作设计开发百度seo推广是什么
  • 中国人寿寿险保险公司官方网站郑州百度公司地址
  • 网站建设交易平台网站手机优化
  • 网页浏览器图标优化大师有用吗
  • 甘肃永靖建设住建局网站windows优化大师值得买吗
  • 找做网站签证湖南seo优化排名
  • 网站建设计划表模板杭州seo网站优化公司
  • 网站开发广告游戏挂机赚钱一小时20
  • iis发布网站的教程站长推荐黄色
  • 宣城哪里做网站深圳华强北
  • 做网站标题头像网推软件有哪些
  • 昆山网站开发建设公司广安网站seo
  • wordpress 教学培训网站优化流程
  • wordpress蜘蛛统计seo的形式有哪些
  • 软件班级网站建设主题淘宝推广平台有哪些
  • 网站建设路由设置网站推广与优化方案
  • 北京商场停业河南网站seo
  • 上海响应式网站建设企业seo推广灰色词
  • 怎样在网站图片上做店铺广告企业如何做好网络营销