1

when trying to execute dev:test:run integration getting following error

Next Magento\Framework\Exception\LocalizedException: Command returned non-zero exit code:
`mysqldump --defaults-extra-file='/var/www/magento206/dev/tests/integration/tmp/sandbox-0-ca4ee7e931dcd5242e686eaa1575d816/defaults_extra.cnf' --host='127.0.0.1'  'magento_integration_tests' > '/var/www/magento206/dev/tests/integration/tmp/sandbox-0-ca4ee7e931dcd5242e686eaa1575d816/setup_dump_magento_integration_tests.sql' 2>&1` in /var/www/magento206/vendor/magento/framework/Shell.php:62

Through PHPStorm getting this

Exception: Starting Magento uninstallation:
[Zend_Db_Statement_Exception]
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento.core_config_data' doesn't exist, query was: SELECT `main_table`.`config_id`, `main_table`.`path`, `main_table`.`value` FROM `core_config_data` AS `main_table` WHERE (`scope` = 'default')
[PDOException]
  SQLSTATE[42S02]: Base table or view not found: 1146 Table 'magento.core_config_data' doesn't exist
setup:uninstall [--magento-init-params="..."]

Next Magento\Framework\Exception\LocalizedException: Command returned non-zero exit code:
`mysqldump --defaults-extra-file='/var/www/magento206/dev/tests/integration/tmp/sandbox-0-ca4ee7e931dcd5242e686eaa1575d816/defaults_extra.cnf' --host='127.0.0.1'  'magento_integration_tests' > '/var/www/magento206/dev/tests/integration/tmp/sandbox-0-ca4ee7e931dcd5242e686eaa1575d816/setup_dump_magento_integration_tests.sql' 2>&1` in /var/www/magento206/vendor/magento/framework/Shell.php:62
  • dev/tests/integration/phpunit.xml - is properly pointed
  • dev/tests/integration/etc/install-config-mysql.php - correctly configured.
3
  • 1
    I also have the same problem for Magento 2.1.1 using Cpanel
    – frostshoxx
    Sep 30, 2016 at 18:58
  • So it seems like the mysql import is failing
    – tread
    Nov 1, 2016 at 14:26
  • Did you fix this issue?
    – tread
    Nov 1, 2016 at 14:33

2 Answers 2

0

I had the first error the author mentioned and it turned out that I did not have mysqldump installed.

-2

You need to config all the php files under this path

C:\xampp\htdocs\ ..\dev\tests\integration\etc

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.