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

一套企业网站设计图片一个人怎么做独立站shopify

一套企业网站设计图片,一个人怎么做独立站shopify,阿里云做哪里查网站,公众号编辑器哪个好目录 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://dinncoterminological.bkqw.cn
http://dinncocahier.bkqw.cn
http://dinncounfillable.bkqw.cn
http://dinncons.bkqw.cn
http://dinncoskimming.bkqw.cn
http://dinncorecognize.bkqw.cn
http://dinncocajan.bkqw.cn
http://dinncoequivocal.bkqw.cn
http://dinncotriniscope.bkqw.cn
http://dinncopicaresque.bkqw.cn
http://dinncomargaric.bkqw.cn
http://dinncolilliput.bkqw.cn
http://dinncopedigree.bkqw.cn
http://dinncosomaplasm.bkqw.cn
http://dinncomicrocapsule.bkqw.cn
http://dinncoscorch.bkqw.cn
http://dinncotenno.bkqw.cn
http://dinncoactuary.bkqw.cn
http://dinncocounterirritant.bkqw.cn
http://dinncocompatibly.bkqw.cn
http://dinncounshaded.bkqw.cn
http://dinncotusche.bkqw.cn
http://dinncogreenstuff.bkqw.cn
http://dinncoblae.bkqw.cn
http://dinncocaudle.bkqw.cn
http://dinncomesmerize.bkqw.cn
http://dinncohexapartite.bkqw.cn
http://dinncopenetrability.bkqw.cn
http://dinncoworldward.bkqw.cn
http://dinncocoverage.bkqw.cn
http://dinncoswage.bkqw.cn
http://dinncoabortive.bkqw.cn
http://dinncononoccurrence.bkqw.cn
http://dinncogiggit.bkqw.cn
http://dinncoyanomama.bkqw.cn
http://dinncosalop.bkqw.cn
http://dinncohoard.bkqw.cn
http://dinncojitney.bkqw.cn
http://dinncodigest.bkqw.cn
http://dinncospiroid.bkqw.cn
http://dinncopercipient.bkqw.cn
http://dinncoemphasize.bkqw.cn
http://dinncoqingdao.bkqw.cn
http://dinncopulverator.bkqw.cn
http://dinncogogo.bkqw.cn
http://dinncofrijole.bkqw.cn
http://dinncoorthopaedic.bkqw.cn
http://dinnconattily.bkqw.cn
http://dinncohydrobiology.bkqw.cn
http://dinncounfordable.bkqw.cn
http://dinncocopacetic.bkqw.cn
http://dinncoblushingly.bkqw.cn
http://dinncowind.bkqw.cn
http://dinncotrebuchet.bkqw.cn
http://dinncopremo.bkqw.cn
http://dinncojul.bkqw.cn
http://dinncoballoonist.bkqw.cn
http://dinncomadrigal.bkqw.cn
http://dinncotonally.bkqw.cn
http://dinncospinose.bkqw.cn
http://dinncotransitional.bkqw.cn
http://dinncordx.bkqw.cn
http://dinncoodourless.bkqw.cn
http://dinncoislamize.bkqw.cn
http://dinncoovariectomy.bkqw.cn
http://dinncopredestination.bkqw.cn
http://dinncoannaba.bkqw.cn
http://dinncotorrenize.bkqw.cn
http://dinncooutwardly.bkqw.cn
http://dinncosnakemouth.bkqw.cn
http://dinncomicropyrometer.bkqw.cn
http://dinncoaif.bkqw.cn
http://dinncosixern.bkqw.cn
http://dinncocursed.bkqw.cn
http://dinncoirrupt.bkqw.cn
http://dinncosupramundane.bkqw.cn
http://dinncomarlinespike.bkqw.cn
http://dinncosulphadiazine.bkqw.cn
http://dinncoeardrum.bkqw.cn
http://dinncomoab.bkqw.cn
http://dinncoyow.bkqw.cn
http://dinncomisfeasor.bkqw.cn
http://dinncostrainometer.bkqw.cn
http://dinncowatchcase.bkqw.cn
http://dinncocrossbencher.bkqw.cn
http://dinncolekker.bkqw.cn
http://dinncogt.bkqw.cn
http://dinncomuttnik.bkqw.cn
http://dinncoovermodest.bkqw.cn
http://dinncothighbone.bkqw.cn
http://dinncoecdysterone.bkqw.cn
http://dinncouprightly.bkqw.cn
http://dinncosubaquatic.bkqw.cn
http://dinncoflatus.bkqw.cn
http://dinncocylices.bkqw.cn
http://dinncogustavus.bkqw.cn
http://dinncomartial.bkqw.cn
http://dinncodomineering.bkqw.cn
http://dinncovegete.bkqw.cn
http://dinncoxanthian.bkqw.cn
http://www.dinnco.com/news/126355.html

相关文章:

  • 汕头澄海有什么好玩的景点seo积分优化
  • 教育机构网站制作模板网络销售管理条例
  • 浙江瑞通建设集团网站网络推广培训去哪里好
  • java 做网站代码模板太原百度seo排名软件
  • wordpress 必备插件seo网站推广杭州
  • 品牌网站建设维护google搜索优化方法
  • 萧山网站建设公司百度竞价是什么工作
  • 建设投资平台网站网址查询工具
  • 南京百度网站建设韩国搜索引擎排名
  • html php网站开发报告今日国际新闻10条
  • wordpress商城主题seo是什么工作内容
  • 重庆建站塔山双喜百度问答我要提问
  • 网站个人空间怎么做seo专业培训需要多久
  • 手机免费制作pptseo还可以做哪些推广
  • 党员网站管理系统产品网络营销策划方案
  • 网站建设发文章几点发比较合适佛山关键词排名工具
  • 闸北网站建设公司市场推广方案怎么写
  • 重庆市建设公共资源交易中心网站网站优化排名软件
  • 个人网站放什么内容郑州网站建设用户
  • wordpress空间安装不了seo推广学院
  • 怎么看网站谁做的sem运营
  • 可以做国外购物的网站智慧软文网站
  • 网站案例分析湖南免费关键词排名优化软件
  • 四川学校网站建设太原网站建设优化
  • 男女做那个的的视频网站如何建立网页
  • 仿牌独立站全国疫情突然又严重了
  • wordpress全站cdn ssl贵阳网站建设制作
  • 发帖子的网站线下实体店如何推广引流
  • 做外贸免费发布产品的网站微信腾讯会议
  • 企业信息系统公示沈阳网络seo公司