Closed raisen closed 11 months ago
Hi
If anyone could fix the backup.sh file that would be great. (https://github.com/segler-alex/radiobrowser-api-rust/blob/master/deployment/backup.sh)
Maybe by modifying it in this way ? 😐
mysqldump ${DBNAME} --ignore-table=${DBNAME}.StationCheck --ignore-table=${DBNAME}.StationCheckHistory --ignore-table=${DBNAME}.StationClick > ${NAME}
mysqldump --no-data ${DBNAME} StationCheckHistory StationClick >> ${NAME}
mysqldump ${DBNAME} StationCheck >> ${NAME}
Steps to reproduce:
mysql server error I'm receiving:
ERROR 1146 (42S02) at line 606: Table 'radio.StationCheckHistory' doesn't exist
Line 606 at the time when this issue was opened is:
It looks like the view is being created before the table
StationCheckHistory
.Removing the SQL statements to create the view fixed the issue and database was initialized correctly.