1#check status after then run this cmnd
2systemctl status mysqld.service
3
4× mysqld.service - MySQL Server
5 Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled; vendor preset: disabled)
6 Active: failed (Result: exit-code) since Sat 2021-09-04 09:33:31 IST; 1h 58min ago
7 Docs: man:mysqld(8)
8 http://dev.mysql.com/doc/refman/en/using-systemd.html
9 Main PID: 1056 (code=exited, status=1/FAILURE)
10 Status: "Server startup in progress"
11 CPU: 2.465s
12
13Sep 04 09:33:26 fedora systemd[1]: Starting MySQL Server...
14Sep 04 09:33:31 fedora systemd[1]: mysqld.service: Main process exited, code=exited, status=1/FAILURE
15Sep 04 09:33:31 fedora systemd[1]: mysqld.service: Failed with result 'exit-code'.
16Sep 04 09:33:31 fedora systemd[1]: Failed to start MySQL Server.
17Sep 04 09:33:31 fedora systemd[1]: mysqld.service: Consumed 2.465s CPU time.
18
19----------------------------
20sudo systemctl enable mysqld
21sudo systemctl start mysqld
22