DataBase/MYSQL

SQL error:may be the input source is a directory or a block device

Naranjito 2022. 1. 24. 13:23
  • SQL Error

db_1       | ERROR: Can't initialize batch_readline - may be the input source is a directory or a block device.

sql_db_1 exited with code 1

 

  • Cause

I changed the name of sql file. 😅  So it doesn't match with docker-compose file.

 

  • Solution

Put the sql file name back as before.

And then docker-compose down, docker-compose up.

'DataBase > MYSQL' 카테고리의 다른 글

Primary Key, Foreign Key  (0) 2022.07.25
SQL, Docker-compose, Python module  (0) 2022.02.03
Common SQL queries in Pandas  (0) 2022.01.24
How to run mySQL through docker-compose.  (0) 2022.01.13
MYSQL Query  (0) 2022.01.13