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

MISP cannot connect to MySQL database #5

Closed
mkorycinski opened this issue Aug 30, 2018 · 5 comments
Closed

MISP cannot connect to MySQL database #5

mkorycinski opened this issue Aug 30, 2018 · 5 comments

Comments

@mkorycinski
Copy link

Hi,

When bringing up the suite through docker-compose up I am hitting the wall with error message from MISP:

│misp-web    | ERROR 1045 (28000): Access denied for user 'misp'@'172.18.0.3' (using password: YES)

I've tried privileges flushing as it was when Dockerfile was still available in @xme repo, however I cannot even login to mysql database using:

docker exec -ti misp-db mysql -p

or:

docker exec -ti misp-db mysql -u root -p

Did anyone also have such problem?

@ebeahan
Copy link

ebeahan commented Sep 11, 2018

I ran into the same issue. You have to make sure you change your misp DB account password here as well before building:

https://github.com/MISP/misp-docker/blob/master/misp-db/init-misp-db.sql#L2

@Miroka96
Copy link
Contributor

Miroka96 commented Oct 9, 2018

You do not have to modify this file, instead make sure you modify the variables in the docker-compose file BEFORE building the containers

@pe3zx
Copy link
Contributor

pe3zx commented Jan 20, 2019

Make sure there are no volumes left before building:

$ sudo rm -rf /data/misp/db/

@SteveClement
Copy link
Member

Some of the points mentioned should resolve this issue.

@Ari-R
Copy link

Ari-R commented Dec 2, 2021

Im getting this same error as well now after it working fine with default settings in docker-compose.yml.

I then changed the mysql_password & mysql_root_password values to give them secure passwords, aswell as the same value in database.php and I am now getting this same error, "ERROR 1045 (28000): Access denied for user 'misp'@'172.18.2.5' (using password: YES)".

How can I update the password files without getting this error ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants