cancel
Showing results for 
Search instead for 
Did you mean: 

Deleted Magento Database

Deleted Magento Database

Greetings techies,

I've deleted the Magento 2.4.4 database from PhpMyAdmin. After that I create new database and add it to the .env file. I also uninstall the Luma theme using CLI.  Now whenever I tried to install the sample data using command 

 

 

php bin/magento sampledata:deploy

 

I found the error on console  "There are no commands defined in the "sampledata" namespace." 

 

errror.png

 

What's the solution of this issue?

 

1 REPLY 1

Re: Deleted Magento Database

Hi @ghulamfari9560 

 

First, you need to delete old magento2 files and directories. Then please follow the steps below:

  • Please delete the whole magento2 directory.
  • Please clone Magento2 again.
  • Please enable sample data before installing Magento2.
  • Please install Magento2 with a new database.
  • Then please run Magento2 standard commands.

If you find our reply helpful, please give us kudos.

 

A Leading Magento Development Agency That Delivers Powerful Results, Innovation, and Secure Digital Transformation.

 

WebDesk Solution Support Team

Get a Free Quote | | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789

Thank You,


WebDesk Solution Support Team
Get a Free Quote | Email | Adobe Commerce Partner | Hire Us | Call Us 877.536.3789


Location: 150 King St. W. Toronto, ON M5H 1J9