1

I am just executing this command line on console php bin/magento setup:upgrade --keep-generated output of this command is SQLSTATE[HY000] [1049] Unknown database 'db_wire' what should i do and following is my env.php

array (
 'default' => 
 array (
 'host' => 'localhost',
 'dbname' => 'db_wire',
 'username' => 'root',
 'password' => '',
 'active' => '1',
 ),
),

I already created database with name 'db_wire'. I create a new database still it's giving same error .Please Help me.Many thanks

asked Mar 9, 2018 at 10:56
1
  • Did you created database db_wire?It seems database is not exist or you created database with another name. Commented Mar 9, 2018 at 11:01

2 Answers 2

1

Please Create a Database with name 'db_wire' for your project, or if you already created any db for the project please replace it with 'db_wire'.

answered Mar 9, 2018 at 11:04
0

If you dump a DB from another DB and both DB names are different, then check on your DB views. Rename old DB names to new ones inside the views. It fixed my issue.enter image description here

answered Sep 26, 2022 at 7:49

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.