Господа я в очередной раз попал куда-то не туда. проблема в следующем - на SSD накатываю систему. Необходимо установить LAMPP. Дошел до настройки MySql и все стало очень гадко. Я попытался установить
[console]
sudo mysql_secure_installation[/console]
Все вроде бы установилось, но при входе Мускул не пускает:
[console]
mysql -u root -p
Enter password:
ERROR 1698 (28000): Access denied for user 'root'@'localhost'
[/console]
Я решил проверить, что у меня есть и оказалось, что рут логинится через сокет:
Показать
medusa@medusa-PC-O-E-M:~$ sudo mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 18
Server version: 8.0.25-0ubuntu0.20.04.1 (Ubuntu)
Copyright (c) 2000, 2021, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> SELECT user,authentication_string,plugin,host FROM mysql.user;
+------------------+------------------------------------------------------------------------+-----------------------+-----------+
| user | authentication_string | plugin | host |
+------------------+------------------------------------------------------------------------+-----------------------+-----------+
| debian-sys-maint | $A$005$=4zQZz`L;Xhn�,_ RpzJD9mZa9TDhYnmAbl1Th2ez27EGDn0dCRQUFRQTWJC | caching_sha2_password | localhost |
| mysql.infoschema | $A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED | caching_sha2_password | localhost |
| mysql.session | $A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED | caching_sha2_password | localhost |
| mysql.sys | $A$005$THISISACOMBINATIONOFINVALIDSALTANDPASSWORDTHATMUSTNEVERBRBEUSED | caching_sha2_password | localhost |
| root | | auth_socket | localhost |
+------------------+------------------------------------------------------------------------+-----------------------+-----------+
5 rows in set (0,00 sec)
[/console]
Пожалуйста, подскажите, как исправить. Может удалить нафик этот сервер и поставить по новой?. Спасибо.