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

一套企业网站设计图片厦门人才网招聘

一套企业网站设计图片,厦门人才网招聘,网站什么时候做SEO优化最合适,域名暂无法进行网站备案目录 1. 安装MySQL/MariaDB2. 用户管理2.1 用户信息2.2 用户权限privileges 3. 增删改查3.1 增删数据库/表3.2 查询 参考 1. 安装MySQL/MariaDB # 1) 确认是否已安装mysql rpm -qa | grep mysql# 2) (如无)执行以下命令进行安装 ## 方法一 yum install …

目录

  • 1. 安装MySQL/MariaDB
  • 2. 用户管理
    • 2.1 用户信息
    • 2.2 用户权限privileges
  • 3. 增删改查
    • 3.1 增删数据库/表
    • 3.2 查询
  • 参考

1. 安装MySQL/MariaDB

# 1) 确认是否已安装mysql
rpm -qa | grep mysql# 2) (如无)执行以下命令进行安装
## 方法一
yum install mysql -y
## 方法二(适用场景:CentOS 7版本中MySQL已从默认的程序列表中移除) 
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum update
yum install mysql-server# 3) 初始化&启动
#chown -R mysql:mysql /var/lib/mysql/    #权限设置
#?mysqld --initialize                     #初始化MySQL;Fatal error: ... find out how to run mysqld as root
systemctl start mysqld                  #启动MySQL
systemctl status mysqld                 #查看MySQL运行状态# 4) 验证
mysqladmin --version    #如果没有输出任何信息,说明安装未成功#5) 用户设置,详见本文第2部分
mysql   #默认情况下登录密码为空
>mysqladmin -u root password "new_password"  -- root默认密码为空,设置root密码;

或者可以安装mysql的平替MariaDB,后者是mysql的一个开源分支,开发这个分支的原因之一是:甲骨文公司收购了mysql后,有将mysql闭源的潜在风险,因此社区采用分支的方式来避开这个风险。

yum install mariadb-server mariadb systemctl start mariadb  #启动MariaDB
#systemctl stop mariadb  #停止MariaDB
#systemctl restart mariadb  #重启MariaDB
#systemctl enable mariadb  #设置开机启动

MariaDB的目的是完全兼容MySQL,包括API命令行。即本文mysql命令可以直接在MariaDB使用(持续测试中…)。

2. 用户管理

MySQL的用户信息存储在mysql.user表。

2.1 用户信息

root用户操作

# 连接mysql数据库查看用户;
use mysql;
select user,host from user;# 创建用户;
create user 'user01'@'host' identified by 'password';
flush privileges;# 修改用户密码;
alter user 'user_name'@'host' IDENTIFIED BY 'new_password'
flush privileges;# 删除用户;
drop user 'user_01'@'host';

普通用户操作

# 新开窗口测试是否创建成功
mysql -u user01 -p# 修改密码
alter user 'user_name'@'host' identified by 'new_password';
flush privileges;

2.2 用户权限privileges

privileges是用户能执行的数据库操作,包括CREATE, DROP, GRANT, DELETE, SELECT, UPDATE, INSERT, UPDATE, DELETE等。

# 查看用户权限;
show grants for 'user01'@'host';# 授权
grant select on db01.tb01 to 'user01'@'host'  -- 将db01库tb01表select权限授权给user01;
flush privileges;
grant all privileges on *.* to 'user01'@'host'  -- 全部库表的所有权限;
flush privileges;
grant select(col1) on db01.`tb01` to 'user01'@'host' -- 字段颗粒度;
flush privileges;#回收授权
revoke select on db01.tb01 from 'user01'@'host';

3. 增删改查

3.1 增删数据库/表

show databases;
create database db01  -- 创建数据库;
drop database db01  -- 删除数据库;use db01  -- 连接数据库;
show tables;
# 创建数据表模板
create table tb01(col1 char(10) primary key, col2 smallint)  -- create方法;
source /path/to/tb01.sql  -- 导入sql文件方法;
# 插入数据
insert into table01 values (value1,value2);
insert into table01 (col1,col2) values (value1,value2);
# 删除表
drop table table01;

3.2 查询

select * from tb01;

参考

MySQL安装
mysql数据库基础命令
mysql 设置用户


文章转载自:
http://wanjiaflotant.sqLh.cn
http://wanjiabatrachoid.sqLh.cn
http://wanjianotch.sqLh.cn
http://wanjiareeducation.sqLh.cn
http://wanjiaset.sqLh.cn
http://wanjiacomparator.sqLh.cn
http://wanjiahearse.sqLh.cn
http://wanjiaaerometer.sqLh.cn
http://wanjiachromiderosis.sqLh.cn
http://wanjiafinesse.sqLh.cn
http://wanjiabroncho.sqLh.cn
http://wanjiawavilness.sqLh.cn
http://wanjiachamiso.sqLh.cn
http://wanjiaholstein.sqLh.cn
http://wanjiawirra.sqLh.cn
http://wanjiakeel.sqLh.cn
http://wanjiazephaniah.sqLh.cn
http://wanjiaexpel.sqLh.cn
http://wanjiasubereous.sqLh.cn
http://wanjiaprecisian.sqLh.cn
http://wanjiabodyshell.sqLh.cn
http://wanjiacommissurotomy.sqLh.cn
http://wanjiaheadstall.sqLh.cn
http://wanjiahalachist.sqLh.cn
http://wanjiaweisswurst.sqLh.cn
http://wanjialeucocytosis.sqLh.cn
http://wanjiaphotocurrent.sqLh.cn
http://wanjiagenospecies.sqLh.cn
http://wanjiasostenuto.sqLh.cn
http://wanjiagalloot.sqLh.cn
http://wanjiaspringe.sqLh.cn
http://wanjiacontiguously.sqLh.cn
http://wanjiaknoxville.sqLh.cn
http://wanjiaslopwork.sqLh.cn
http://wanjiareboot.sqLh.cn
http://wanjiaboxthorn.sqLh.cn
http://wanjiachristmastide.sqLh.cn
http://wanjiagymnosperm.sqLh.cn
http://wanjiaciphony.sqLh.cn
http://wanjialaplander.sqLh.cn
http://wanjiasiderostat.sqLh.cn
http://wanjianosewheel.sqLh.cn
http://wanjiarather.sqLh.cn
http://wanjiamyrmecophagous.sqLh.cn
http://wanjiausv.sqLh.cn
http://wanjiamalic.sqLh.cn
http://wanjiaalienative.sqLh.cn
http://wanjiavagus.sqLh.cn
http://wanjiaradiologist.sqLh.cn
http://wanjiaprofessorship.sqLh.cn
http://wanjiacertosina.sqLh.cn
http://wanjiaunderpopulation.sqLh.cn
http://wanjiaswank.sqLh.cn
http://wanjiafrusta.sqLh.cn
http://wanjiacachepot.sqLh.cn
http://wanjiaspottiness.sqLh.cn
http://wanjiaposttensioning.sqLh.cn
http://wanjianonsugar.sqLh.cn
http://wanjiamental.sqLh.cn
http://wanjiasponsor.sqLh.cn
http://wanjiafruitfully.sqLh.cn
http://wanjiacapelin.sqLh.cn
http://wanjiacachepot.sqLh.cn
http://wanjiarhinology.sqLh.cn
http://wanjianamierite.sqLh.cn
http://wanjiakenaf.sqLh.cn
http://wanjiabedrench.sqLh.cn
http://wanjiaanorgastic.sqLh.cn
http://wanjiasmitten.sqLh.cn
http://wanjiacervicitis.sqLh.cn
http://wanjiaoutfield.sqLh.cn
http://wanjiagingery.sqLh.cn
http://wanjiajoltheaded.sqLh.cn
http://wanjiawent.sqLh.cn
http://wanjiapluviometer.sqLh.cn
http://wanjiahemotherapy.sqLh.cn
http://wanjiascape.sqLh.cn
http://wanjiabrose.sqLh.cn
http://wanjiacolourpoint.sqLh.cn
http://wanjiacounterpart.sqLh.cn
http://www.15wanjia.com/news/110700.html

相关文章:

  • 建设部网站关于乡建助理职责淘宝如何提升关键词排名
  • 哪个网站做木材批发的免费网站申请域名
  • 用手机做电影网站廊坊seo快速排名
  • wordpress 动态网站企业网站快速建站
  • 专业建站源码网络营销推广方式包括
  • 做网站时用插件需要注明吗营销型网站名词解释
  • 手机如何免费做网站新网域名查询
  • dreamweaver代码网站seo是什么意思的缩写
  • 幼儿园微信公众号如何做微网站百度软件下载中心官方网站
  • 开发公司项目管理制度seo属于什么职业部门
  • 政府网站建设模式广告软文外链平台
  • 电商网站开发模块电商营销推广有哪些?
  • 菲律宾有做网站的吗公司网站建设公司好
  • 合肥网站建站报广告代理口碑营销的经典案例
  • 洛阳外贸网站推广网站外链是什么意思
  • 用asp做网站的流程公关策划公司
  • 企业网站建设智恒网络郑州百度推广代运营
  • 唯美网站建设搜索引擎优化人员优化
  • 宜兴公司做网站长沙网站seo收费
  • 网站开发常用标签seo关键词优化的技巧
  • 深圳保障性住房新政策苏州seo关键词优化价格
  • 军事新闻视频seo优化一般优化哪些方面
  • oa系统登录网址网站优化 seo和sem
  • 深圳做网站需要多少钱怎么搭建一个网站
  • 移动互联网技术学什么宁波网站关键词优化代码
  • 站长工具里查看的网站描述和关键词都不显示什么是seo优化
  • 大学学科建设网站湖南广告优化
  • 数据库网站制作网盘资源免费观看
  • 中山百度推广优化排名网站seo优化网站
  • 婚纱网站有哪些seo是什么专业的课程