Category : econnrefused

Unable to connect via docker-compose mysql container via node js Sequelize using command line i am able to access mysql. mysql-db: image: mysql:5 # COPY environment: – MYSQL_ROOT_PASSWORD:”root” – MYSQL_DATABASE:”dbname” – MYSQL_USER:”root1″ – MYSQL_PASSWORD:”root1″ – MYSQL_ROOT_HOST:”%” ports: – “3306:3306” expose: – “3306” volumes: – ./mysqld.cnf:/etc/mysql/mysql.conf.d/mysqld.cnf networks: – boilerplate-network command: –log-bin=/var/lib/mysql/mysql-bin.log –binlog-format=ROW –server-id=1 # configs: # ..

Read more