centos8降级centos7安装mysql遇到的问题

0.客户端登陆报错

luobiaodeMacBook-Air:~ luobiao$ ssh root@39.101.204.8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!    @

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!

Someone could be eavesdropping on you right now (man-in-the-middle attack)!

It is also possible that a host key has just been changed.

The fingerprint for the ECDSA key sent by the remote host is

SHA256:jN2L7Ebd8ZV03ErBmMpGwHybqNBnLqOX0TTk9TbgzZs.

Please contact your system administrator.

Add correct host key in /Users/luobiao/.ssh/known_hosts to get rid of this message.

Offending ECDSA key in /Users/luobiao/.ssh/known_hosts:8

ECDSA host key for 39.101.204.8 has changed and you have requested strict checking.

Host key verification failed.

解决:

这里面,有一句很关键。

ECDSA host key for 39.101.204.8  has changed and you have requested strict checking.

Host key verification failed.

一般这个问题,是你重置过你的服务器后。你再次想访问会出现这个问题。

ssh-keygen -R  39.101.204.8 



1.安装mysql报错

mysqld: error while loading shared libraries: libaio.so.1: cannot open shared object file: No such file or directory

解决:
经过百度说是缺少 libaio.so.1  这个包.这个包是干什么的呢?

我也没查看到?试试先安装这个包。

yum -y install libaio  

安装后,解决该问题。

2.[root@later01/errlog]# /etc/init.d/mysqld start 

Starting MySQL.2020-04-11T16:49:17.645735Z mysqld_safe error: log-error set to '/errlog/3306/mysql.log', however file don't exists. Create writable for user 'mysql'.

解决: 创建日志文件并赋权 

[root@later01/errlog/3306]# echo "" > mysql.log 

[root@later01/errlog/3306]# chown -R mysql.mysql /errlog/

3.2020-04-11T16:52:12.084460Z 0 [ERROR] InnoDB: The innodb_system data file './ibdata1' is of a different size 768 pages (rounded down to MB) than the 4864 pages specified in the .cnf file!

解决:注释my.cnf 中的

#innodb_data_file_path=ibdata1:76M;ibdata2:100M;ibdata3:100M:autoextend

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 1.A simple master-to-slave replication is currently being...
    Kevin关大大阅读 5,997评论 0 3
  • 安装并配置MySQL数据库 3.2.1安装MySQL数据库 1.MySQL数据库的安装环境准备 如果读者没有物理服...
    SkTj阅读 4,080评论 0 6
  • https://github.com/Hackeruncle/MySQL/blob/master/MySQL%20...
    Ace_Wang阅读 772评论 0 1
  • jdk1.8安装,tar解压,用户组发生变化,需要调整: 首先删除操作系统自带的jdk, 使用awk拼接执行的命令...
    ly稻草阅读 546评论 0 1
  • 什么是数据库? 数据库是存储数据的集合的单独的应用程序。每个数据库具有一个或多个不同的API,用于创建,访问,管理...
    chen_000阅读 4,055评论 0 19