1
0
-1

i have successfully run image library/mariadb:

root@wcl-virtual-machine:/home/wcl/onap/docker-config# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
380618fc7633 mariadb:10.1.11 "/docker-entrypoin..." 11 days ago Up 11 days 0.0.0.0:32772->3306/tcp dockerconfig_mariad

but i cannot login the mariadb with default user/password root/password.

root@db:/# mysql -u root password
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)



    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      Hi Chenglong Wang

      According to mso docker container environment variables it is "password"

      Tried on ONAP-1.0.0

      root@vm1-mso:/opt/test_lab# docker exec -ti testlab_mariadb_1 bash
      root@db:/# mysql -u root -p
      Enter password:
      Welcome to the MariaDB monitor. Commands end with ; or \g.
      Your MariaDB connection id is 173032
      Server version: 10.1.11-MariaDB-1~jessie-log mariadb.org binary distribution

      Copyright (c) 2000, 2015, Oracle, MariaDB Corporation Ab and others.

      Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

      MariaDB [(none)]>

        CommentAdd your comment...