Guest User

Untitled

a guest
Jan 24th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.44 KB | None | 0 0
  1. If you have this error
  2.  
  3. 2017-05-03 15:11:06 140715339528128 [ERROR] InnoDB: Error in creating ./ibdata1: probably out of disk space
  4. 2017-05-03 15:11:06 140715339528128 [ERROR] InnoDB: Could not open or create the system tablespace. If you tried to add new data files to the system tablespace, and it failed here, you should now edit innodb_data_file_path in my.cnf back to what it was, and remove the new ibdata files InnoDB created in this failed attempt. InnoDB only wrote those files full of zeros, but did not yet use them in any way. But be careful: do not remove old data files which contain your precious data!
  5. 2017-05-03 15:11:06 140715339528128 [ERROR] Plugin 'InnoDB' init function returned error.
  6. 2017-05-03 15:11:06 140715339528128 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
  7. 2017-05-03 15:11:06 140715339528128 [ERROR] Unknown/unsupported storage engine: InnoDB
  8. 2017-05-03 15:11:06 140715339528128 [ERROR] Aborting
  9.  
  10. Then you need to add this code in docker-compose.yml
  11. Section with db
  12.  
  13. Code for MariaDB: command: --innodb-flush-method=O_DSYNC --innodb-use-native-aio=0 --log_bin=ON
  14. Code for MySQL: command: --innodb_use_native_aio=0
  15. Example:
  16.  
  17. version: '3.1'
  18.  
  19. services:
  20.  
  21. db:
  22. image: mariadb
  23. restart: always
  24. environment:
  25. MYSQL_ROOT_PASSWORD: 123
  26. command: --innodb-flush-method=O_DSYNC --innodb-use-native-aio=0 --log_bin=ON
  27. volumes:
  28. - ./data:/var/lib/mysql
  29. ports:
  30. - "3306:3306"
  31.  
  32. Good luck:)
Add Comment
Please, Sign In to add comment