Moje řešení:
Zprovoznil jsem mysql, tedy už jek mám v adresářích másledovně:
sudo rm -rf /var/lib/mysql
sudo rm -rf /etc/mysql/
sudo mkdir -p /etc/mysql/conf.d
MYSQL mám:
kvetoslav@kvetoslav:~$ mysql -V
mysql Ver 8.0.32-0ubuntu0.22.04.2 for Linux on x86_64 ((Ubuntu))
kvetoslav@kvetoslav:~$
Do MYSQL se ale nedostanu, pač v run nemám mysqld, viz. kontrola:
kvetoslav@kvetoslav:~$ mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
kvetoslav@kvetoslav:~$ service mysql status
× mysql.service - MySQL Community Server
Loaded: loaded (/lib/systemd/system/mysql.service; enabled; vendor preset:>
Active: failed (Result: exit-code) since Tue 2023-04-11 14:37:06 CEST; 17m>
Process: 1173 ExecStartPre=/usr/share/mysql/mysql-systemd-start pre (code=e>
CPU: 5ms
dub 11 14:37:06 kvetoslav systemd[1]: mysql.service: Scheduled restart job, res>
dub 11 14:37:06 kvetoslav systemd[1]: Stopped MySQL Community Server.
dub 11 14:37:06 kvetoslav systemd[1]: mysql.service: Start request repeated too>
dub 11 14:37:06 kvetoslav systemd[1]: mysql.service: Failed with result 'exit-c>
dub 11 14:37:06 kvetoslav systemd[1]: Failed to start MySQL Community Server.
lines 1-11/11 (END)
mysqld není také zde:
root@kvetoslav:/home/kvetoslav# mysqld_safe
Logging to '/var/lib/mysql/kvetoslav.err'.
2023-04-11T13:06:44.390433Z mysqld_safe Directory '/var/run/mysqld' for UNIX socket file don't exists.
Složka conf.d nemá žádný soubor!!
root@kvetoslav:/home/kvetoslav# nano /etc/mysql/conf.d
V etc init.d by měl být, domnívám se, soubor "mysqld start". Bohužel není. Schází tedy "/etc/init.d/mysqld start", což způsobí, že MYSQL nenajede....