wikimedia-france/Lingua-Libre

Hi, How do I access the database?

kamomil opened this issue · 3 comments

I get:

dafna@guri:~/wiki/Lingua-Libre$ sudo mysql -u lingualibre --password=bienvenue
mysql: [Warning] Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user 'lingualibre'@'localhost' (using password: YES)

wiese commented

Hi @kamomil,

if you use the docker-compose set-up, then the database resides within a dedicated container on which you have to run database-specific commands.
Assuming you have docker-compose running (docker-compose up -d), run
docker-compose exec database mysql -u lingualibre --password=bienvenue to replicate what you did.

Explanation:

  • docker-compose - the docker-compose binary
    • exec - the docker-compose command
      • database - the name of the service to execute (compare docker-compose.yml keys)
        • ... - the binary to run / any command

@kamomil : is it ok ? can we close this issue ?