cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 2 installation failed

Magento 2 installation failed

I've tried to setup Magento 2 with the file 'magento' located in /var/www/html/magento2/bin, but it keeps fail in 4th progress.

 

Starting Magento installation:
File permissions check...
[Progress: 1 / 589]
Required extensions check...
[Progress: 2 / 589]
Enabling Maintenance Mode...
[Progress: 3 / 589]
Installing deployment configuration...
[Progress: 4 / 589]
Installing database schema:

 

 [Zend_Db_Statement_Exception] 
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento2.store_website' doesn't exist, query was
: SELECT `store_website`.* FROM `store_website`

 

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

 

How can I fix this? Do I have to make 'store_website' table manually?

14 REPLIES 14

Re: Magento 2 installation failed

Hi

well you have database table issue while installing magento 2

main reason behind is its might taking existing table from database because you don't require to create manually any table, its all table will generate automatically

do one thing create a new blank db and then install magento 2 - on database configuration step add this new database details and then check

it will work
if issue solved,Click Kudos & Accept as Solution

Re: Magento 2 installation failed

Hi @NDelt

 

Just create a new database. And add this new database name, usename and password in add database step at the time of Magento 2 Installation.

 

magento2 install step4 png  821×449 .png

 

If Issue Solved, Click Kudos/Accept As solutions.

Re: Magento 2 installation failed

@Manthan Dave

I've made a blank DB named 'magento', but same error has occurred when I run Magento 2 installation script.

 

Re: Magento 2 installation failed

@Prince Patel

How to I access the page that you uploaded as a screenshot?

Re: Magento 2 installation failed

@NDelt This is default Magento 2 installation screen. which you can access from the browser.

 

Folder location: var/www/html/magento2

http://127.0.0.1/magento2/

Re: Magento 2 installation failed

Hello,

 

You can add --cleanup-database to your installation command.

Smiley Happy

Re: Magento 2 installation failed

You can run the command

bin/magento setup:uninstall

This command fix config file, and env.

 

Enjoy.

Re: Magento 2 installation failed

I did this but its not running setup wizard. Blank Setup Page

Re: Magento 2 installation failed

Hi @abduhalim_bekna,

 

Set full permission to root folder of magento once. 

sudo chmod -R 0777 folder_name