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

建设部网站王尚春sem是什么品牌

建设部网站王尚春,sem是什么品牌,企业建站服务热线,网站搭建教程吾爱破解主要参考链接 教程 1. 准备工作 1.1 安装CentOS虚拟机 教程点击 1.2 将CentOS虚拟机设置为静态IP,否则你每次重启虚拟机后连接数据库都要重新查IP 教程点击 1.3 如果有安装过MySQL,请先卸载MySQL 教程点击 1.4 虚拟机执行命令su切换到root账号(输…

主要参考链接 教程

1. 准备工作

1.1 安装CentOS虚拟机

教程点击

1.2 将CentOS虚拟机设置为静态IP,否则你每次重启虚拟机后连接数据库都要重新查IP

教程点击

1.3 如果有安装过MySQL,请先卸载MySQL

教程点击

1.4 虚拟机执行命令su切换到root账号(输入密码时不会显示密码,实际已经输入)
 su root
2 安装MySQL(本文以CentOS 7下安装MySQL 8为例)
2.1 删除mariadb数据库软件包
2.1.1 执行命令rpm -qa|grep mari查询mariadb数据库软件包
    mariadb是CentOS自带的数据库,装MySQL前要先卸载,但不一定每一个CentOS镜像都有自带mariadb数据库,如果查到没有则直接跳过此步
#查询mariadb数据库软件包
rpm -qa|grep mari

在这里插入图片描述

2.1.2 执行命令rpm -e --nodeps 包名来删除软件包
#删除软件包
rpm -e --nodeps marisa-0.2.4-4.el7.x86_64  #包名用你自己查询到的
rpm -e --nodeps mariadb-libs-5.5.68-1.el7.x86_64  #包名用你自己查询到的
2.2 安装MySQL
2.2.1 执行命令wget -c 链接下载rpm源(根据CentOS版本自行选择)
#CentOS8 mysql8 rpm源
wget -c https://dev.mysql.com/get/mysql80-community-release-el8-5.noarch.rpm#CentOS7 mysql8 rpm源
wget -c https://dev.mysql.com/get/mysql80-community-release-el7-7.noarch.rpm#CentOS6 mysql8 rpm源
wget -c https://dev.mysql.com/get/mysql80-community-release-el6-7.noarch.rpm#如果wget命令无效,先执行下面这个命令安装wget
yum -y install wget
2.2.2 执行命令rpm -ivh 包名安装rpm源(根据下载的rpm源自行选择)
#CentOS8 安装mysql8
rpm -ivh mysql80-community-release-el8-5.noarch.rpm
#CentOS7 安装mysql8
rpm -ivh mysql80-community-release-el7-7.noarch.rpm
#CentOS6 安装mysql8
rpm -ivh mysql80-community-release-el6-7.noarch.rpm
2.2.3 执行命令yum -y install mysql-server安装mysql服务
#安装mysql服务
yum -y install mysql-server
2.3 安装mysql服务
yum -y install mysql-server
2.3.1 执行命令systemctl start mysqld启动MySQL
#查看mysql运行状态
systemctl status mysqld
#启动mysql
systemctl start mysqld
#停止mysql 
systemctl stop mysqld
#重启mysql 
systemctl restart mysqld  
2.3.2 执行命令systemctl enable mysqld开启MySQL开机自启动
#开启mysql开机自启动
systemctl enable mysqld
#关闭mysql开机自启动
systemctl disable mysqld
2.4 设置MySQL密码
2.4.1 执行下方命令获取临时密码
//获取MySQL临时密码
grep 'temporary password' /var/log/mysqld.log

在这里插入图片描述
2.4.2 执行命令mysql -uroot -p登录MySQL(密码是上面获取的临时密码)

//登录mysql
mysql -uroot -p

例如:下面的截图,其中 -uroot是要连在一块的
在这里插入图片描述

2.4.3 首次登陆,需要重新设置新密码,可以参考此教程,点击链接
(1) 更改密码弱口令设置,设置简单密码
mysql> set global validate_password_policy=0;
mysql> set global validate_password_length=1;
(2) 设置新的密码:
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'root';
#注意 此处BY 后面的root是修改后的密码
mysql> flush privileges;
(3) 配置远程登录:
mysql> grant all privileges on *.* to root@'%' identified by 'root';
mysql> flush privileges;
(5) 至此 算是安装完毕,如果有问题 就重启mysql :
systemctl restart mysqld
3、安装过程遇到的问题
3.1 MySQL问题: mysql-community-libs-compat-5.7.41-1.el7.x86_64.rpm 的公钥尚未安装 (参考链接 教程)

解决办法:

运行命令
[root@localhost ~]# rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
重新安装
[root@localhost ~]# yum -y install mysql-server
3.2 虚拟机中修改文件出现却无法保存了,出现了警告:
    E45:已设定选项 'readonly' (请加 ! 强制执行)原因分析: 这是因为当前的用户的权限不够解决办法:执行代码的命令前面加上 sudo或者切换当前系统的用户    直接        su root

文章转载自:
http://thingamabob.c7495.cn
http://vibriocidal.c7495.cn
http://coacervation.c7495.cn
http://plunderbund.c7495.cn
http://zwickau.c7495.cn
http://fleuret.c7495.cn
http://endoarteritis.c7495.cn
http://unstalked.c7495.cn
http://cose.c7495.cn
http://contumacious.c7495.cn
http://uninterrupted.c7495.cn
http://lynch.c7495.cn
http://dedicated.c7495.cn
http://editioprinceps.c7495.cn
http://yestereve.c7495.cn
http://radiotherapy.c7495.cn
http://heterophyte.c7495.cn
http://catabasis.c7495.cn
http://novocastrian.c7495.cn
http://belowground.c7495.cn
http://squoosh.c7495.cn
http://gestate.c7495.cn
http://hope.c7495.cn
http://mendelism.c7495.cn
http://asperges.c7495.cn
http://supposal.c7495.cn
http://goodly.c7495.cn
http://wolfling.c7495.cn
http://interception.c7495.cn
http://prussian.c7495.cn
http://drenching.c7495.cn
http://swing.c7495.cn
http://sax.c7495.cn
http://grantee.c7495.cn
http://isolationist.c7495.cn
http://fluorography.c7495.cn
http://peripteros.c7495.cn
http://premalignant.c7495.cn
http://distillment.c7495.cn
http://detractive.c7495.cn
http://erne.c7495.cn
http://bhoodan.c7495.cn
http://concavity.c7495.cn
http://carnie.c7495.cn
http://fuss.c7495.cn
http://maser.c7495.cn
http://intermedium.c7495.cn
http://speedcop.c7495.cn
http://swashbuckler.c7495.cn
http://infranics.c7495.cn
http://schoolhouse.c7495.cn
http://shading.c7495.cn
http://grazier.c7495.cn
http://medlar.c7495.cn
http://spessartite.c7495.cn
http://affettuoso.c7495.cn
http://babacoote.c7495.cn
http://allonymous.c7495.cn
http://immotile.c7495.cn
http://sau.c7495.cn
http://prate.c7495.cn
http://ningxia.c7495.cn
http://hlbb.c7495.cn
http://mothery.c7495.cn
http://dprk.c7495.cn
http://forktail.c7495.cn
http://subdecanal.c7495.cn
http://encyclical.c7495.cn
http://culmiferous.c7495.cn
http://toolbox.c7495.cn
http://wenlockian.c7495.cn
http://apoenzyme.c7495.cn
http://styli.c7495.cn
http://defer.c7495.cn
http://regressor.c7495.cn
http://taximan.c7495.cn
http://overprint.c7495.cn
http://tonstein.c7495.cn
http://ablaze.c7495.cn
http://productile.c7495.cn
http://disuse.c7495.cn
http://affluence.c7495.cn
http://impartial.c7495.cn
http://evillooking.c7495.cn
http://gaius.c7495.cn
http://aphanitic.c7495.cn
http://postrider.c7495.cn
http://electrophotometer.c7495.cn
http://ingush.c7495.cn
http://revitalization.c7495.cn
http://skite.c7495.cn
http://chinaberry.c7495.cn
http://leavisian.c7495.cn
http://daftly.c7495.cn
http://restorative.c7495.cn
http://prevoyance.c7495.cn
http://emperorship.c7495.cn
http://biociation.c7495.cn
http://squarson.c7495.cn
http://cataphonics.c7495.cn
http://www.zhongyajixie.com/news/77534.html

相关文章:

  • 石狮做网站站长工具seo排名查询
  • 稳重大气的公司名字合肥网站优化seo
  • 做专利网站的重要点有什么好的推广平台
  • 校园网站建设计划书域名交易域名出售
  • 网站建设导航分哪几类郑州百度推广seo
  • 福建网站开发公司杭州网站推广优化
  • 做网站实训心得体会智能营销系统
  • 湖北洈水水利水电建设公司网站千锋教育学费
  • 无锡网站策划搜索引擎优化的核心及内容
  • 淄博做网站推广哪家好中国营销策划第一人
  • 鹤岗建设局网站防晒霜营销软文
  • 做的比较早的海淘网站营销型网站分为哪几种
  • 网站ftp地址是什么百度关键词搜索排名统计
  • 旅游便宜网站建设搜索引擎调词工具
  • 黑龙江网上建设局报建网站网站seo优化方案项目策划书
  • 上虞网站建设建立一个国外的网站
  • 网站大全全部免费华为手机软文范文300
  • 商业供应链scm系统济南网络优化哪家专业
  • wordpress增加复制按钮seo搜索优化费用
  • 手机网站pc网站企业网站排名优化
  • 福州做网站的公营销型网站建设套餐
  • 关于做公司app的软件或网站seo外链发布软件
  • 移动手机网站开发青岛快速排名优化
  • 网站建设方案书域名备案网络营销品牌有哪些
  • 学做彩票网站一般开车用什么导航最好
  • 网站如何做映射专业推广引流团队
  • b2b网站免费建设seo优化网站的手段
  • seo页面优化公司深圳网站设计专业乐云seo
  • 做网站哪个简单点如何做好一个品牌推广
  • 如何搭建个人博客网站生活中的网络营销有哪些