کل فرایند انجام دادم ولی هنوز مشکل هست
alireza@OptiPlex-5090:~$ sudo df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 6.3G 2.7M 6.3G 1% /run
/dev/nvme0n1p3 912G 252G 614G 30% /
tmpfs 32G 35M 32G 1% /dev/shm
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
/dev/nvme0n1p1 239M 29M 210M 12% /boot/efi
tmpfs 6.3G 8.5M 6.3G 1% /run/user/1001
alireza@OptiPlex-5090:~$ sudo apt-get --purge remove mysql
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package mysql
alireza@OptiPlex-5090:~$ sudo apt purge mysql-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following packages were automatically installed and are no longer required:
libcgi-fast-perl libcgi-pm-perl libfcgi-bin libfcgi-perl libfcgi0ldbl
libhtml-template-perl libmecab2 libprotobuf-lite23 mecab-ipadic
mecab-ipadic-utf8 mecab-utils mysql-client-8.0 mysql-client-core-8.0
mysql-server-8.0 mysql-server-core-8.0
Use 'sudo apt autoremove' to remove them.
The following packages will be REMOVED:
mysql-server*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
After this operation, 35.8 kB disk space will be freed.
Do you want to continue? [Y/n] y
(Reading database ... 418507 files and directories currently installed.)
Removing mysql-server (8.0.32-0ubuntu0.22.04.2) ...
alireza@OptiPlex-5090:~$ sudo rm -r /etc/mysql
alireza@OptiPlex-5090:~$ sudo apt install mysql-server
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following NEW packages will be installed:
mysql-server
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/9,458 B of archives.
After this operation, 35.8 kB of additional disk space will be used.
Selecting previously unselected package mysql-server.
(Reading database ... 418505 files and directories currently installed.)
Preparing to unpack .../mysql-server_8.0.32-0ubuntu0.22.04.2_all.deb ...
Unpacking mysql-server (8.0.32-0ubuntu0.22.04.2) ...
Setting up mysql-server (8.0.32-0ubuntu0.22.04.2) ...
alireza@OptiPlex-5090:~$ sudo mysql -u root
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)