Magento Expert Forum - Improve your Magento experience

Results 1 to 3 of 3

Error while executing php bin/magento setup:upgrade

  1. #1
    New member
    Join Date
    Apr 2016
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Error while executing php bin/magento setup:upgrade

    I am trying to execute Magento 2.0 in my localhost.

    after the sucessfull installation of the Magento when i try to execute the command php bin/magento setup:upgrade.

    I am getting the following error.

    [Zend_Db_Adapter_Exception]
    SQLSTATE[HY000] [2002] No such file or directory

    [PDOException]
    SQLSTATE[HY000] [2002] No such file or directory

    setup:upgrade [--keep-generated] [--magento-init-params="..."]

    Does anyone come accross this issue. ?

    Please help to fix this.

    View more threads in the same category:


  2. #2
    New member
    Join Date
    Jun 2016
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    hi

    i am not sure if this is resolved or not. is that error correspond to db connection? is there any problem with db connection if anything changed after install?

  3. #3
    Junior Member
    Join Date
    Sep 2018
    Location
    Oman, Muscat
    Posts
    2,084
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Default

    If you enabled one or more modules, then you will need to run magento setup:upgrade to update the database schema. By default, magento setup:upgrade clears compiled code and the cache. Typically, you use magento setup:upgrade to update components and each component can require different compiled classes.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •