error: Failed dependencies: ?? ?libmecab.so.2()(64bit) is needed by mysql-community-server-8.0.13-1.fc29.x86_64 解決:下載 dnf install mecab.x86_64
[/usr/lib/tmpfiles.d/mdadm.conf:1] Line references path below legacy directory /var/run/, updating /var/run/mdadm → /run/mdadm; please update the tmpfiles.d/ drop-in file accordingly. [/usr/lib/tmpfiles.d/mysql.conf:23] Line references path below legacy directory /var/run/, updating /var/run/mysqld → /run/mysqld; please update the tmpfiles.d/ drop-in file accordingly. [/usr/lib/tmpfiles.d/samba.conf:1] Line references path below legacy directory /var/run/, updating /var/run/samba → /run/samba; please update the tmpfiles.d/ drop-in file accordingly. 解決:將文件中的目錄該為提示中的目錄
7. 初始化MySQL?
root# mysqld --initialize --user=mysql
?8. 查看MySQL密碼
[root@Fedora-Server run]# cat /var/log/mysqld.log
2018-11-26T03:01:33.391812Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.13) initializing of server in progress as process 2399
2018-11-26T03:01:46.392883Z 5 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: Vpia7>,oegR9
2018-11-26T03:01:57.432035Z 0 [System] [MY-013170] [Server] /usr/sbin/mysqld (mysqld 8.0.13) initializing of server has completed
9. 啟動(dòng)MySQL
root# systemctl start mysqld.service
10 登錄MySQL
root# mysql -u root -p
// 輸入剛才的隨機(jī)密碼
alter user 'root'@'localhost' identified by '123456'; // 修改密碼
/*開啟MySQL遠(yuǎn)程登錄
*/
show databases;
use mysql;
GRANT ALL ON *.* TO 'root'@'%';