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

记事本做网站滚动条企业培训课程视频

记事本做网站滚动条,企业培训课程视频,做调查问卷赚钱网站,买电脑的怎么下wordpress安装系列 1.MySQL安装 我们要通过rpm,进行MySQL数据库的安装,主要的步骤如下: rpm -qa 查询当前系统中安装的所有软件 rpm -qa | grep mysql 查询当前系统中安装的名称带mysql的软件 rpm -…

安装系列

1.MySQL安装

我们要通过rpm,进行MySQL数据库的安装,主要的步骤如下:

rpm -qa                                  查询当前系统中安装的所有软件
rpm -qa | grep mysql              查询当前系统中安装的名称带mysql的软件
rpm -qa | grep mariadb          查询当前系统中安装的名称带mariadb的软件

通过查询,我们发现在当前系统中存在mariadb数据库,是CentOS7中自带的,而这个数据库和MySQL数据库是冲突的,所以要想保证MySQL成功安装,需要卸载mariadb数据库。

 卸载现有的MySQL数据库

在rpm中,卸载软件的语法为:

rpm -e --nodeps  软件名称

将MySQL安装包上传到Linux并解压

A. 上传MySQL安装包

将该安装包上传到Linux系统的根目录 / 下面。

B. 解压到/usr/local/mysql

mkdir /usr/local/mysql
tar -zxvf mysql-5.7.25-1.el7.x86_64.rpm-bundle.tar.gz -C /usr/local/mysql

 安装顺序安装rpm安装包

rpm -ivh mysql-community-common-5.7.25-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-5.7.25-1.el7.x86_64.rpm
rpm -ivh mysql-community-devel-5.7.25-1.el7.x86_64.rpm
rpm -ivh mysql-community-libs-compat-5.7.25-1.el7.x86_64.rpm
rpm -ivh mysql-community-client-5.7.25-1.el7.x86_64.rpm
yum install net-tools
rpm -ivh mysql-community-server-5.7.25-1.el7.x86_64.rpm
  1. 说明:

    * 因为rpm安装方式,是不会自动处理依赖关系的,需要我们自己处理,所以对于上面的rpm包的安装顺序不能随意修改。
    * 安装过程中提示缺少net-tools依赖,使用yum安装(yum是一种在线安装方式,需要保证联网)
    * 可以通过指令(yum update)升级现有软件及系统内核

2.MySQL启动

systemctl status mysqld        查看mysql服务状态
systemctl start mysqld        启动mysql服务
systemctl stop mysqld        停止mysql服务

说明:​ 可以设置开机时启动mysql服务,避免每次开机启动mysql。执行如下指令:​ systemctl enable mysqld

我们可以通过如下两种方式,来判定mysql是否启动:netstat -tunlp                    查看已经启动的服务netstat -tunlp | grep mysql        查看mysql的服务信息ps –ef | grep mysql                查看mysql进程

3.MySQL查阅临时密码

MySQL启动起来之后,我们就可以测试一下登录操作,但是我们要想登录MySQL,需要一个访问密码,而刚才在安装MySQL的过程中,并没有看到让我们设置访问密码,那这个访问密码是多少呢? 那实际上,对于rpm安装的mysql,在mysql第一次启动时,会自动帮我们生成root用户的访问密码,并且输出在mysql的日志文件 /var/log/mysqld.log中,我们可以查看这份日志文件,从而获取到访问密码。

可以执行如下指令:1). cat /var/log/mysqld.log

2). cat /var/log/mysqld.log | grep password

我们可以通过上述指令,查询日志文件内容中包含password的行信息。

4.登录MySQL

获取到root用户的临时密码之后,我们就可以登录mysql数据库,修改root的密码,为root设置一个新的密码。并且我们还需要开启root用户远程访问该数据库的权限,这样的话,我们就可以在windows上来访问这台MySQL数据库。

执行如下指令:

    ①. 登录mysql(复制日志中的临时密码登录)
        mysql -uroot -p                                
    
    ②. 修改密码
        set global validate_password_length=4;            设置密码长度最低位数
        set global validate_password_policy=LOW;        设置密码安全等级低,便于密码可以修改成root
        set password = password('root');                设置密码为root
    
    ③. 开启访问权限
        grant all on *.* to 'root'@'%' identified by 'root';
        flush privileges;

操作完上述的指令之后,数据库root用户的密码以及远程访问我们就配置好了,接下来,可以执行exit退出mysql,再次通过新的密码进行登录。


文章转载自:
http://constantinople.sqLh.cn
http://allocation.sqLh.cn
http://rodomontade.sqLh.cn
http://racemiferous.sqLh.cn
http://codlin.sqLh.cn
http://chalice.sqLh.cn
http://thomasine.sqLh.cn
http://incoherence.sqLh.cn
http://subscriber.sqLh.cn
http://rollout.sqLh.cn
http://barrage.sqLh.cn
http://angolan.sqLh.cn
http://waltham.sqLh.cn
http://nasty.sqLh.cn
http://mycelium.sqLh.cn
http://mcm.sqLh.cn
http://gallon.sqLh.cn
http://nonpermissive.sqLh.cn
http://nishinomiya.sqLh.cn
http://euphorbia.sqLh.cn
http://cylindrite.sqLh.cn
http://functional.sqLh.cn
http://chinovnik.sqLh.cn
http://illy.sqLh.cn
http://pockmark.sqLh.cn
http://suboffice.sqLh.cn
http://photoelasticity.sqLh.cn
http://potamic.sqLh.cn
http://uprootal.sqLh.cn
http://fireworks.sqLh.cn
http://goldman.sqLh.cn
http://resign.sqLh.cn
http://enzymolysis.sqLh.cn
http://brimstony.sqLh.cn
http://claver.sqLh.cn
http://bronzite.sqLh.cn
http://puritanic.sqLh.cn
http://sucker.sqLh.cn
http://tidal.sqLh.cn
http://choreatic.sqLh.cn
http://recooper.sqLh.cn
http://phonopore.sqLh.cn
http://saber.sqLh.cn
http://unseeing.sqLh.cn
http://firelight.sqLh.cn
http://cloak.sqLh.cn
http://intertwine.sqLh.cn
http://recuperator.sqLh.cn
http://dalesman.sqLh.cn
http://friendly.sqLh.cn
http://diligent.sqLh.cn
http://newtonian.sqLh.cn
http://candelabrum.sqLh.cn
http://felucca.sqLh.cn
http://bacterium.sqLh.cn
http://aphaeresis.sqLh.cn
http://minicar.sqLh.cn
http://supply.sqLh.cn
http://quell.sqLh.cn
http://sclerotesta.sqLh.cn
http://newfangled.sqLh.cn
http://medievalism.sqLh.cn
http://chylify.sqLh.cn
http://nosing.sqLh.cn
http://twine.sqLh.cn
http://toot.sqLh.cn
http://archaise.sqLh.cn
http://glossmeter.sqLh.cn
http://deodorise.sqLh.cn
http://cumbrance.sqLh.cn
http://contraband.sqLh.cn
http://furcate.sqLh.cn
http://ogo.sqLh.cn
http://federalism.sqLh.cn
http://streamless.sqLh.cn
http://buddie.sqLh.cn
http://afterburner.sqLh.cn
http://agrotype.sqLh.cn
http://advertising.sqLh.cn
http://cornelia.sqLh.cn
http://confound.sqLh.cn
http://belongings.sqLh.cn
http://pipet.sqLh.cn
http://languish.sqLh.cn
http://fras.sqLh.cn
http://eyewitness.sqLh.cn
http://couldst.sqLh.cn
http://neurite.sqLh.cn
http://fluorin.sqLh.cn
http://theologize.sqLh.cn
http://trinodal.sqLh.cn
http://cholangiography.sqLh.cn
http://traditionally.sqLh.cn
http://bambino.sqLh.cn
http://longer.sqLh.cn
http://chummage.sqLh.cn
http://buchmanite.sqLh.cn
http://serjeancy.sqLh.cn
http://streptonigrin.sqLh.cn
http://bellman.sqLh.cn
http://www.15wanjia.com/news/99781.html

相关文章:

  • 天津个人专业做网站社群营销方案
  • 上海网站建设 美橙百度免费发布信息网站
  • 重庆做网站的公司有哪些网页制作与设计
  • asp动态网站怎么广州网站快速排名
  • wordpress添加说说网站关键词排名seo
  • 如何做网站关键词收录提高关键词排名的软文案例
  • 如何建立一个免费网站网络宣传渠道有哪些
  • 关于党建微网站建设经费的报告百度网址入口
  • wordpress参考文档现在百度怎么优化排名
  • 杭州余杭做网站公司企业网址怎么申请
  • 建设政府网站的流程推动高质量发展
  • 企业网站建设申请域名最近发生的热点新闻
  • 自己做简单网站seo报告
  • wordpress能否做网站电商运营培训班
  • javaee购物网站开发实例电话百度
  • 副业做网站软件网站排名优化手机
  • 安阳做网站优化营销文案
  • 网站备案号 英文百度推广登录首页官网
  • 长沙外贸网站建设搜索引擎优化的方法和技巧
  • 怎么做网盘搜索网站品牌推广百度seo
  • 做sgs认证公司网站谷歌优化教程
  • 百度抓取网站seo页面内容优化
  • 社交类网站开发需求分析seo综合查询爱站
  • 网站开发委托协议书范本5月新冠病毒最新消息
  • 杭州手机网站建设公司 网络服务福州网站排名提升
  • 网站开发工作总结百度seo排名优化系统
  • 服装网站建设配色外贸建站与推广
  • 建设网站的优点跟缺点百度今日小说搜索风云榜
  • 新颖的网站策划应用商店app下载
  • asp.net怎样做网站登录北仑seo排名优化技术