redhat6-64位操作系统下安装mysql-5.7.18过程
来源:互联网 发布:linux 启动命令模式 编辑:程序博客网 时间:2024/06/06 20:42
1.进入官网下载mysql
https://dev.mysql.com/downloads/mysql/
2.Tar包传至服务器下进行解压
Tar –xvf mysql-5.7.18-1.el6.x86_64.rpm-bundle.tar
3.解压 后安装如下包:
rpm –ivh mysql-community-common-5.7.18-1.el6.x86_64.rpm
rpm –ivh mysql-community-client-5.7.18-1.el6.x86_64.rpm
rpm –ivh mysql-community-server-5.7.18-1.el6.x86_64.rpm
4.安装最后一个包可能会报如下错误:
libnuma.so.1()(64bit) is needed by mysql-community-server-5.7.18-1.el6.x86_64
5.网上下载http://rpm.pbone.net/index.php3
numactl-2.0.7-8.el6.x86_64.rpm
rpm –ivh numactl-2.0.7-8.el6.x86_64.rpm
注:在这当中我下过numactl-2.0.7-6.el6.src.rpm、numactl-libs-2.0.9-6.el7_2.x86_64.rpm安装时依然报各种依赖包错误
6.开启服务service mysqld start
7.登入root mysql -u root 或mysql 报错
8.Service mysqld stop
9.添加如下一行至/etc/my.cnf
skip-grant-tables
10.Service mysqld start
11.登入Mysql mysql –u root
12.修改密码:
update user set authentication_string=password(‘123456’) where user=’root’;
flush privileges
注:5.7.18修改密码字段不是password
13.删除/etc/my.cnf中的skip-grant-tables
14.Service mysqld restart
Mysql –u root –p123456登入数据库
15.登入成功后查询任何sql报错:
16.ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement
17.执行如下命令:
SET PASSWORD = PASSWORD(‘123456’);
18.若17命令报这个错:ERROR 1819 (HY000): Your password does not satisfy the current policy requirements
19.运行如下命令:
set global validate_password_policy=0;
set global validate_password_length=1;
20.再次执行命令:
SET PASSWORD = PASSWORD(‘123456’);
21.退出mysql重新登入mysql –u root –p123456
22.测试select now()即能正常显示表示安装成功
- redhat6-64位操作系统下安装mysql-5.7.18过程
- Redhat6下安装MySQL Server
- linux系统下安装64位mysql 5.6的过程
- linux系统下安装64位mysql 5.6的过程
- MySQL学习2:Windows 64位操作系统下安装和配置MySQL
- win10 64位操作系统下jdk安装
- mysql在windows64位操作系统下安装配置
- 在Linux(CentOS 6.2 64位操作系统)下安装MySQL数据并开启远程访问权限
- 32位系统下安装windows 64位操作系统
- redhat6.3安装MySQL
- MySQL学习3:Windows 64位操作系统下验证MySQL
- MySQL学习4:Windows 64位操作系统下使用MySQL
- Windows7 64位操作系统+Python3.6.1 +PyCharm安装过程
- win7 64位操作系统 安装mysql 5.7.X mysql 无法启动服务
- VMware Workstation Pro12安装RedHat6.4 64位
- Windows下64位Oracle11g安装过程
- win7 64位操作系统下配置PHP+MySql+Apache环境
- Win7 64位操作系统下配置PHP+MySql+Apache环境
- 勒索蠕虫-WanaCrypt0r(比特币病毒)防治攻略和事件全回顾
- ActiveMQ学习笔记-分发策略
- React Native实现验证码倒计时功能
- LeetCode 19 Remove Nth Node From End of List(二级指针)
- 【BFS】HDU 2612 Find a way
- redhat6-64位操作系统下安装mysql-5.7.18过程
- eclipse运行jsp文件右键 runconfig
- Atlantis HDU
- CDOJ24_8球胜负
- 六角网格相关算法
- kaili 安装中文输入法
- 大数乘法
- 2017 湘潭邀请赛 H Highway(树的直径)
- AS 程序中 Theme.AppCompat.Light影响标题栏显示的问题