Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Big problem with composer in Yii2 #18224

Closed
Deathst0 opened this issue Aug 8, 2020 · 1 comment
Closed

Big problem with composer in Yii2 #18224

Deathst0 opened this issue Aug 8, 2020 · 1 comment
Labels

Comments

@Deathst0
Copy link

Deathst0 commented Aug 8, 2020

Hi,

Trying to install codecept file with Composer

And I have this

D:\OpenServer\domains\opensource.php>composer require "codeception/codeception:*"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating autoload files
31 packages you are using are looking for funding.
Use the composer fund command to find out more!

@php requirements.php

Fatal error: Uncaught PDOException: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO) in D:\OpenServer\domains\opensource.php\vendor\yiisoft\yii2\db\Connection.php:705
Stack trace:
#0 D:\OpenServer\domains\opensource.php\vendor\yiisoft\yii2\db\Connection.php(705): PDO->__construct()
#1 D:\OpenServer\domains\opensource.php\vendor\yiisoft\yii2\db\Connection.php(626): yii\db\Connection->createPdoInstance()
#2 D:\OpenServer\domains\opensource.php\vendor\yiisoft\yii2\db\Connection.php(1022): yii\db\Connection->open()
#3 D:\OpenServer\domains\opensource.php\vendor\yiisoft\yii2\db\Connection.php(1009): yii\db\Connection->getMasterPdo()
#4 D:\OpenServer\domains\opensource.php\vendor\yiisoft\yii2\db\Schema.php(696): yii\db\Connection->getSlavePdo()
#5 D:\OpenServer\domains\opensource.php\vendor\yiisoft\yii2\db\Connection.php(994): yii\db\Schema->getServerVersion()
#6 D:\OpenServer\domains\opensource.php\requirements.php(67): yii\db\Connection->getServerVersion()
#7 {main}

Next yii\db\Exception: in D:\OpenServer\domains\opensource.php\vendor\yiisoft\yii2\db\Connection.php on line 637
Script @php requirements.php handling the post-update-cmd event returned with error code 255

Installation failed, reverting ./composer.json to its original content.

@yii-bot
Copy link

yii-bot commented Aug 9, 2020

Thank you for your question.
In order for this issue tracker to be effective, it should only contain bug reports and feature requests.

We advise you to use our community driven resources:

If you are confident that there is a bug in the framework, feel free to provide information on how to reproduce it. This issue will be closed for now.

This is an automated comment, triggered by adding the label question.

@yii-bot yii-bot closed this as completed Aug 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants