Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,466,226
Community Members
 
Community Events
176
Community Groups

why do i get suddenly an access denied in the mysql bitbucket pipeline?

Edited

This looks crazy but suddenly my bitbucket pipelines started to fail because access denied.

pymysql.err.OperationalError: (1045, "Access denied for user 'example-user'@'127.0.0.1' (using password: NO)")

 

Here is my bitbucket-pipelines.yaml file:

 


# This is a sample build configuration for Python.
# Check our guides at https://confluence.atlassian.com/x/x4UWN for more examples.
# Only use spaces to indent your .yml configuration.
# -----
# You can specify a custom docker image from Docker Hub as your build environment.
image: python:3.6.4

pipelines:
  default:
    - step:
        caches:
          - pip
        script: # Modify the commands below to build your repository.
          - pip install pipenv
          - pipenv install --dev --system --deploy
          - export DB_USERNAME=example-user && export DB_PASSWORD=example-user
          - python -c 'import os;print(os.environ.get("DB_PASSWORD"))'
          - coverage run --source=predictor --omit=predictor/* -m unittest
          - coverage report -m
        services:
          - mysql


definitions:
  services:
    mysql:
      image: mysql
      environment:
        MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
        MYSQL_DATABASE: 'database1'
        MYSQL_USER: 'example-user'
        MYSQL_PASSWORD: 'example-user'

I can confirm that the environment variable is printed. How can i debug the issue further?

1 answer

Did you got it working?

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events