TITLE:
Result :
Database user with such login is already registered.
exit status 2ACTUAL RESULT:
Result :
+------------------+----------------+-------+----------+
| domain_name | database_name | login | password |
+------------------+----------------+-------+----------+
| mydomain | mydb | NULL | NULL |
+------------------+----------------+-------+----------+EXPECTED RESULT:
Result :
+------------------+----------------+-------+----------+
| domain_name | database_name | login | password |
+------------------+----------------+-------+----------+
|mydomain | mydb | dbuser | xxxxxx |
+------------------+----------------+-------+----------+ANY ADDITIONAL INFORMATION:
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:
Plesk command line : register existing user to database domain
PRODUCT, VERSION, OPERATING SYSTEM, ARCHITECTURE:Product version: Plesk Onyx 17.5.3 Update #20
Update date: 2017/08/29 03:09
Build date: 2017/03/17 16:00
OS version: CentOS 7
Revision: 55d1b49a272f44666e1920eca8b6e4da449a38cd
Architecture: 64-bit
Wrapper version: 1.2
PROBLEM DESCRIPTION:Update date: 2017/08/29 03:09
Build date: 2017/03/17 16:00
OS version: CentOS 7
Revision: 55d1b49a272f44666e1920eca8b6e4da449a38cd
Architecture: 64-bit
Wrapper version: 1.2
I have created a mysql database and a mysql user with mysql cli
i have granted all privileges for the user to the database
I have registered the database to a plesk domain with plesk command line
Impossible to register the user in the plesk database
STEPS TO REPRODUCE:i have granted all privileges for the user to the database
I have registered the database to a plesk domain with plesk command line
Impossible to register the user in the plesk database
- plesk interface
- Mysql cli
Code:
CREATE DATABASE `mydb`;
Code:
CREATE USER 'dbuser'@'localhost' IDENTIFIED BY 'mypass';
Code:
GRANT ALL PRIVILEGES ON `mydb`.* TO 'dbuser'@'localhost' WITH GRANT OPTION;
- plesk command line
Code:
plesk bin database --register mydb -domain mydomain -server localhost:3306
Code:
plesk bin database --register-dbuser dbuser -domain mydomain -type mysql -database mydb -passwd mypass
Database user with such login is already registered.
exit status 2
Code:
SELECT domains.name AS domain_name, data_bases.name AS database_name, db_users.login, accounts.password
FROM data_bases
left join db_users on db_users.db_id = data_bases.id
left join domains on domains.id = data_bases.dom_id
left join accounts on accounts.id = db_users.account_id
WHERE domains.name = 'mydomain';
Result :
+------------------+----------------+-------+----------+
| domain_name | database_name | login | password |
+------------------+----------------+-------+----------+
| mydomain | mydb | NULL | NULL |
+------------------+----------------+-------+----------+
Code:
SELECT domains.name AS domain_name, data_bases.name AS database_name, db_users.login, accounts.password
FROM data_bases
left join db_users on db_users.db_id = data_bases.id
left join domains on domains.id = data_bases.dom_id
left join accounts on accounts.id = db_users.account_id
WHERE domains.name = 'mydomain';
Result :
+------------------+----------------+-------+----------+
| domain_name | database_name | login | password |
+------------------+----------------+-------+----------+
|mydomain | mydb | dbuser | xxxxxx |
+------------------+----------------+-------+----------+
YOUR EXPECTATIONS FROM PLESK SERVICE TEAM:
Help with sorting out
Last edited: