SQLSTATE[28000]: Invalid authorization specification: 1045 Access denied for user 'nextcloud_user'@'localhost' (using password: YES)
Доброго времени суток, уважаемые форумчане.
Столкнулся с проблеммой авторизации пользователя. Сообщение об ошибке - тема этого поста.
Поискав ответы в Гугле, почитав форумы - решения для себя не нашел.
Что было сделанно:
В консоле MySQL:
- создал пользователя
CREATE USER nextcloud_user@localhost IDENTIFIED BY 'pas$W0rd';
- выдал ему права на базу
GRANT ALL ON nextcloud.* TO nextcloud_user@localhost;
FLUSH PRIVILEGES;
После получив ошибку (см.название темы), попытался подключиться к базе...
Выполняю следущее:
mysql -u nextcloud_user -p
<На запрос пароля в консоле ввожу pas$W0rd>
И получаю приглашение консоли MySQL:
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 26
Server version: 8.0.33 MySQL Community Server - GPL
Copyright (c) 2000, 2023, 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>
Выполняю запрос, с целью убедиться, что текущий пользователь - тот что мне нужен, а не root:
mysql> select current_user();
+--------------------------+
| current_user() |
+--------------------------+
| nextcloud_user@localhost |
+--------------------------+
1 row in set (0,00 sec)
Как по мне, то всё правильно. Выбираю нужную мне базу:
mysql> use nextcloud;
Database changed
Опять - всё хорошо! Хочу посмотреть список таблиц:
mysql> show tables;
ERROR 1045 (28000): Access denied for user 'nextcloud_user'@'localhost' (using password: YES)
И тут получаю такую же ошибку.
Собственно вопрос: может кто-то из уважаемых форумчан встречал подобную ошибку и может подсказать как её исправить?
Subject
Views
Written By
Posted
SQLSTATE[28000]: Invalid authorization specification: 1045 Access denied for user 'nextcloud_user'@'localhost' (using password: YES)
979
October 26, 2023 05:03AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.