I use mysql in docker and my server's space is 100% full.
Half of space is occupied by /var/lib/mysql/binlog.* files and I want to remove them with the following command:
purge binary logs to 'binlog.000142';
Error is:
ERROR 3 (HY000): Error writing file './binlog.index_crash_safe' (OS errno 28 - No space left on device)
As recommended in StackOverFlow by community in other questions, it's not recommended to remove rm binlog via the OS and it's better to remove by mysql query.
What should I do in this case? Should I add hard disk to my server? Or there's a way to remove that?