Skip to content

Configured table prefix is not recognized in CLI admin:user:create #11176

@crtl

Description

@crtl

I have installed Magento via the CLI and then wanted to create a new admin user via the CLI.

Preconditions

  1. Installed Magento 2.2.0 instance with configured tableprefix

Steps to reproduce

 php bin/magento admin:user:create --admin-user=user --admin-password=pass [email protected] --admin-firstname=fname --admin-lastname=lname

Expected result

  1. A new User should be created
  2. The tableprefix should be properly prepended to tablenames

Actual result

  1. The user could no be created because the table was not found.
  [Zend_Db_Statement_Exception]
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'my_db.admin_passwords' doesn't exist, query was: INSERT INTO `
  admin_passwords` (`user_id`, `password_hash`, `last_updated`) VALUES (?, ?, ?)


  [PDOException]
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'my_db.admin_passwords' doesn't exist

Metadata

Metadata

Assignees

Labels

Fixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: Clear DescriptionGate 2 Passed. Manual verification of the issue description passedIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 release

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions