symfony / recipes-contrib

Symfony Contrib Recipes Repositories

Home Page:https://github.com/symfony/recipes-contrib/blob/flex/main/RECIPES.md

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

An exception occurred in driver: SQLSTATE[HY000] [1045] Access denied for user 'db_user'@'localhost' (using password: YES)

khilairet opened this issue · comments

My problem is that travis stops every time when he clear the cache. He shows me the error:

An exception occurred in driver: SQLSTATE [HY000] [1045] Access denied for user 'db_user' @ 'localhost' (using password: YES)

I tried to do the same travis procedures locally and everything works.
I do not understand why Travis is trying to connect to the database.
My composer.json:

{
    "name": "octopouce-mu/admin-bundle",
    "type": "symfony-bundle",
    "description": "Admin bundle",
    "license": "MIT",
    "authors": [
        {
            "name": "Kevin Hilairet",
            "email": "kevin@octopouce.mu"
        },
        {
            "name": "Octopouce",
            "homepage": "http://www.octopouce.mu"
        }
    ],
    "require": {
        "php": "^7.1.3",
        "symfony/framework-bundle": "^3.4|^4.0",
        "symfony/form": "^3.4|^4.0",
        "symfony/asset": "^3.4|^4.0",
        "symfony/security-bundle": "^3.4|^4.0",
        "symfony/swiftmailer-bundle": "^3.1",
        "symfony/orm-pack": "*",
        "symfony/yaml": "^3.4|^4.0",
        "symfony/twig-bundle": "^3.4|^4.0",
        "symfony/translation": "^3.4|^4.0",
        "doctrine/doctrine-fixtures-bundle": "^3.0",
        "twig/extensions": "^1.5",
        "sensio/framework-extra-bundle": "^5.1",
        "stof/doctrine-extensions-bundle": "^1.3",
        "facebook/graph-sdk": "^5.6",
        "google/apiclient": "^2.2",
        "friendsofsymfony/jsrouting-bundle": "^2.2"
    },
    "require-dev": {
    },
    "autoload": {
        "psr-4": {
            "Octopouce\\AdminBundle\\": ""
        }
    },
    "extra": {
        "symfony": {
            "allow-contrib": "true",
            "require": "4.*"
        }
    }
}

Thank you for helping me, it remains to me that this error so that my recip is to accept

Is there a database on the Travis Server? Otherwise it can not connect to localhost, that is what the error says. I do not see the context to this repository.

You get this error because you cannot connect to a database. It has nothing to do with this repository. Check the symfony-dev slack or ask a question on stackoverflow.