centos8降級(jí)centos7安裝mysql遇到的問(wèn)題

0.客戶端登陸報(bào)錯(cuò)

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.

解決:

這里面,有一句很關(guān)鍵。

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

Host key verification failed.

一般這個(gè)問(wèn)題,是你重置過(guò)你的服務(wù)器后。你再次想訪問(wèn)會(huì)出現(xiàn)這個(gè)問(wèn)題。

ssh-keygen -R??39.101.204.8?



1.安裝mysql報(bào)錯(cuò)

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

解決:
經(jīng)過(guò)百度說(shuō)是缺少?libaio.so.1? 這個(gè)包.這個(gè)包是干什么的呢?

我也沒(méi)查看到?試試先安裝這個(gè)包。

yum -y install libaio??

安裝后,解決該問(wèn)題。

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'.

解決: 創(chuàng)建日志文件并賦權(quán)?

[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

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

  • 1.A simple master-to-slave replication is currently being...
    Kevin關(guān)大大閱讀 6,231評(píng)論 0 3
  • 安裝并配置MySQL數(shù)據(jù)庫(kù) 3.2.1安裝MySQL數(shù)據(jù)庫(kù) 1.MySQL數(shù)據(jù)庫(kù)的安裝環(huán)境準(zhǔn)備 如果讀者沒(méi)有物理服...
    SkTj閱讀 4,196評(píng)論 0 6
  • https://github.com/Hackeruncle/MySQL/blob/master/MySQL%20...
    Ace_Wang閱讀 822評(píng)論 0 1
  • jdk1.8安裝,tar解壓,用戶組發(fā)生變化,需要調(diào)整: 首先刪除操作系統(tǒng)自帶的jdk, 使用awk拼接執(zhí)行的命令...
    ly稻草閱讀 607評(píng)論 0 1
  • 什么是數(shù)據(jù)庫(kù)? 數(shù)據(jù)庫(kù)是存儲(chǔ)數(shù)據(jù)的集合的單獨(dú)的應(yīng)用程序。每個(gè)數(shù)據(jù)庫(kù)具有一個(gè)或多個(gè)不同的API,用于創(chuàng)建,訪問(wèn),管理...
    chen_000閱讀 4,137評(píng)論 0 19

友情鏈接更多精彩內(nèi)容