Mysql server not running

Hello guys,
I try to access database but i got some problem with it.

:~/frappe-bench$ mysql -u root -p
Enter password: 
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Then i checked the status,

:~$ sudo service mysql status
[sudo] password for sumith: 
× mysql.service - MySQL Community Server
     Loaded: loaded (/lib/systemd/system/mysql.service; disabled; vendor preset: enabled)
     Active: failed (Result: exit-code) since Wed 2024-10-09 16:31:36 IST; 17min ago
        CPU: 4ms

Oct 09 16:31:36 sumith-ASUS-TUF-Gaming-F17-FX706HF-FX706HF systemd[1]: mysql.service: Scheduled restart job, restart counter i>
Oct 09 16:31:36 sumith-ASUS-TUF-Gaming-F17-FX706HF-FX706HF systemd[1]: Stopped MySQL Community Server.
Oct 09 16:31:36 sumith-ASUS-TUF-Gaming-F17-FX706HF-FX706HF systemd[1]: mysql.service: Start request repeated too quickly.
Oct 09 16:31:36 sumith-ASUS-TUF-Gaming-F17-FX706HF-FX706HF systemd[1]: mysql.service: Failed with result 'exit-code'.
Oct 09 16:31:36 sumith-ASUS-TUF-Gaming-F17-FX706HF-FX706HF systemd[1]: Failed to start MySQL Community Server.

How to solve this issue.

It is loaded but disabled, although the vendor preset is enabled:

loaded (/lib/systemd/system/mysql.service; disabled; vendor preset: enabled)

Try:

$ sudo systemctl enable mysql

and see if it unblocks the thing.

If not, you might find hints in logs.

Ok. But actually I uninstalled overall MySQL and then reinstalled it. Now it working.
Thank you