How to fix the «Table `admin_user` doesn't exist» failure on `bin/magento admin:user:create` while using a database tables prefix?

01

It seems to me fixed in Magento 2.3:

How to fix in Magento < 2.3

Replace the line:


with the following code block:

$this->data =
	[
		self::KEY_PREFIX => \Magento\Framework\App\ObjectManager::getInstance()
			->get(\Magento\Framework\App\DeploymentConfig::class)
				->get(\Magento\Framework\Config\ConfigOptionsListConstants::CONFIG_PATH_DB_PREFIX)
	] + $data
;