Not like the mysql 5.x, after remove ib* files, the mysql 8 will not re-generate the ibdata file if ibdata file is missing, so it won't be able to startup.
The errors in /var/lib/mysqld.log indicates it cannot find the ibdata file,
Release : 10.0
Component : API GATEWAY
If the ib* files are removed, and there is no snapshot/backup, then re-init mysql would be needed,
0. take snapshot before any change
1. if already mysqldump all databases, jump to step 2
mkdir /tmp/mysql
vi /etc/my.cnf (delete following variables if exist: innodb_file_per_table, innodb_force_recovery)
mysqld --console --user=mysql --initialize --datadir=/tmp/mysql
cp -p /tmp/mysql/ib* /var/lib/mysql
vi /etc/my.cnf
add one line: innodb_force_recovery=6
systemctl start mysql
mysqldump --all-databases > alldb.sql
2. initialize mysql
rm -Rf /var/lib/mysql/*
vi /etc/my.cnf (delete variables if exist: innodb_file_per_table, innodb_force_recovery)
mysqld --console --user=mysql --initialize --datadir=/var/lib/mysql
(the output will show temp password, for example, "A temporary password is generated for root@localhost: MWq.j0>RMdV>" -- if there is no output, you can find the temp password in /var/log/mysqld.log)
systemctl start mysql
mysql -u root -p
(login with the temp password, and set password for root -- replace '7layer' with the default password you currently have in ~/.my.cnf)
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY '7layer';
mysql> exit;
3. restore data
mysql < alldb.sql
(replace the sql file name if needed)
4. restore user privileges
mysql> flush privileges;