I did the Mysql optimization and now it's giving error

I did the Mysql optimization by the Cyberpanel tool and now the server is down.

[root@freefiremania mysql]# systemctl start mariadb.service
Job for mariadb.service failed because the control process exited with error code. See “systemctl status mariadb.service” and “journalctl -xe” for details.

May 09 19:23:40 freefiremania.vps sshd[679296]: Received disconnect from 94.20.88.107 port 42318:11: Bye Bye [preauth]
May 09 19:23:40 freefiremania.vps sshd[679296]: Disconnected from 94.20.88.107 port 42318 [preauth]
May 09 19:23:40 freefiremania.vps sshd[679303]: Failed password for invalid user brian from 65.108.248.84 port 28184 ssh2
May 09 19:23:40 freefiremania.vps sshd[679303]: Received disconnect from 65.108.248.84 port 28184:11: Bye Bye [preauth]
May 09 19:23:40 freefiremania.vps sshd[679303]: Disconnected from 65.108.248.84 port 28184 [preauth]
May 09 19:23:56 freefiremania.vps sshd[679336]: Invalid user tomcat from 114.189.248.12 port 41786
May 09 19:23:56 freefiremania.vps sshd[679336]: input_userauth_request: invalid user tomcat [preauth]
May 09 19:23:56 freefiremania.vps sshd[679336]: pam_unix(sshd:auth): check pass; user unknown
May 09 19:23:56 freefiremania.vps sshd[679336]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=i114-189-248-12.s41.a040.ap.plala.or.jp
May 09 19:23:59 freefiremania.vps sshd[679336]: Failed password for invalid user tomcat from 114.189.248.12 port 41786 ssh2
May 09 19:23:59 freefiremania.vps sshd[679336]: Received disconnect from 114.189.248.12 port 41786:11: Bye Bye [preauth]
May 09 19:23:59 freefiremania.vps sshd[679336]: Disconnected from 114.189.248.12 port 41786 [preauth]
May 09 19:24:01 freefiremania.vps systemd[1]: Created slice User Slice of root.
– Subject: Unit user-0.slice has finished start-up
– Defined-By: systemd
– Support: systemd-devel Info Page

– Unit user-0.slice has finished starting up.

– The start-up result is done.
May 09 19:24:01 freefiremania.vps systemd[1]: Started Session 4484958 of user root.
– Subject: Unit session-4484958.scope has finished start-up
– Defined-By: systemd
– Support: systemd-devel Info Page

– Unit session-4484958.scope has finished starting up.

– The start-up result is done.
May 09 19:24:01 freefiremania.vps CROND[679349]: (root) CMD (if ! find /home/*/public_html/ -maxdepth 2 -type f -newer /usr/local/lsws/cgid -name ‘.htaccess’ -exec false {} +; then systemctl r
May 09 19:24:01 freefiremania.vps systemd[1]: Removed slice User Slice of root.
– Subject: Unit user-0.slice has finished shutting down
– Defined-By: systemd
– Support: systemd-devel Info Page

– Unit user-0.slice has finished shutting down.
May 09 19:24:13 freefiremania.vps sshd[679367]: Invalid user test5 from 162.214.192.220 port 49890
May 09 19:24:13 freefiremania.vps sshd[679367]: input_userauth_request: invalid user test5 [preauth]
May 09 19:24:13 freefiremania.vps sshd[679367]: pam_unix(sshd:auth): check pass; user unknown
May 09 19:24:13 freefiremania.vps sshd[679367]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=5248970.ash.ashwithkottary.com
May 09 19:24:15 freefiremania.vps sshd[679367]: Failed password for invalid user test5 from 162.214.192.220 port 49890 ssh2
May 09 19:24:15 freefiremania.vps sshd[679367]: Received disconnect from 162.214.192.220 port 49890:11: Bye Bye [preauth]
May 09 19:24:15 freefiremania.vps sshd[679367]: Disconnected from 162.214.192.220 port 49890 [preauth]
May 09 19:24:17 freefiremania.vps sshd[679374]: reverse mapping checking getaddrinfo for ecs-116-63-136-129.compute.hwclouds-dns.com [116.63.136.129] failed - POSSIBLE BREAK-IN ATTEMPT!
May 09 19:24:17 freefiremania.vps sshd[679374]: pam_unix(sshd:auth): authentication failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=116.63.136.129 user=root
May 09 19:24:19 freefiremania.vps sshd[679374]: Failed password for root from 116.63.136.129 port 37702 ssh2
May 09 19:24:19 freefiremania.vps sshd[679374]: Received disconnect from 116.63.136.129 port 37702:11: Bye Bye [preauth]
May 09 19:24:19 freefiremania.vps sshd[679374]: Disconnected from 116.63.136.129 port 37702 [preauth]
May 09 19:25:00 freefiremania.vps sshd[679507]: Invalid user ubadmin from 165.227.176.221 port 37598
May 09 19:25:00 freefiremania.vps sshd[679507]: input_userauth_request: invalid user ubadmin [preauth]

I see all sorts of user names and ip addresses. Is it possibe you’ve been hacked?

There’s also a lot of password failures. Search the forum and docs for how to check your MySQL root password. Maybe it has been cleared or changed.