Всем привет,
Переустановил Kubuntu 18 и устанавливая mysql установил запустив программу
mysql_secure_installation
и выбрав сложный пароль при входе из php-приложения/phpmyadmin, adminer получаю ошибку :
1. mstdmstd - 05 Октября, 2019 - 15:17:48 - перейти к сообщению
выполнив mysql_secure_installation пару раз чтобы исключить описку все равно ошибку
При этом в консоле введя команду ниже и скопировав пароль я успешно вхожу в mysql-консоль:
CODE (htmlphp):
скопировать код в буфер обмена
скопировать код в буфер обмена
- # mysql -u root -p
- Enter password:
- Your MySQL connection id is 5
- Server version: 5.7.27-0ubuntu0.18.04.1 (Ubuntu)
- Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
- Oracle is a registered trademark of Oracle Corporation and/or its
- affiliates. Other names may be trademarks of their respective
- owners.
- Reading table information for completion of table and column names
- You can turn off this feature to get a quicker startup with -A
- Database changed
- mysql> select version();
- +-------------------------+
- | version() |
- +-------------------------+
- | 5.7.27-0ubuntu0.18.04.1 |
- +-------------------------+
- 1 row in set (0.00 sec)
- mysql>
CODE (htmlphp):
скопировать код в буфер обмена
скопировать код в буфер обмена
- # mysql -u root -h localhost -p
- Enter password:
- Your MySQL connection id is 7
- Server version: 5.7.27-0ubuntu0.18.04.1 (Ubuntu)
- Copyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.
- Oracle is a registered trademark of Oracle Corporation and/or its
- affiliates. Other names may be trademarks of their respective
- owners.
- mysql> UPDATE user SET Password=PASSWORD('MyPassword') where USER='root';
- ERROR 1046 (3D000): No database selected
- Reading table information for completion of table and column names
- You can turn off this feature to get a quicker startup with -A
- Database changed
- mysql> UPDATE user SET Password=PASSWORD('MyPassword') where USER='root';
- ERROR 1054 (42S22): Unknown column 'Password' in 'field list'
- mysql> UPDATE user SET Password=PASSWORD('MyPassword') where USER='root';
- ERROR 1054 (42S22): Unknown column 'Password' in 'field list'
- mysql> update user set authentication_string=password('MyPassword') where user='root';
- Query OK, 1 row affected, 1 warning (0.00 sec)
- Rows matched: 1 Changed: 1 Warnings: 1
- Query OK, 0 rows affected (0.01 sec)
- Bye
- # /etc/init.d/mysql restart