Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete binary log on Google Cloud SQL

I have enabled binary log option on Google Cloud SQL. But seems expire_log_days option can not be configured on google developpers console.

Can I configure this option? If can't, when binary log will be deleted?

like image 852
N.F. Avatar asked Aug 10 '15 05:08

N.F.


People also ask

How do you delete binary logs?

To delete all binary log files, use RESET MASTER. To move to a new log file (for example if you want to remove the current log file), use FLUSH LOGS before you execute PURGE LOGS .

Can I delete MySQL binary logs?

Can I Remove MySQL Binary Log Yes, as long as the data is replicated to Slave server, it's safe to remove the file. It's recommend only remove MySQL Binary Log older than 1 month. Besides, if Recovery of data is the main concern, it's recommend to archive MySQL Binary Log.

What is Cloud SQL binary logging?

Cloud SQL is a managed solution that helps handles backups, replication, high availability and failover, data encryption, monitoring, and logging. Cloud SQL is ideal for lift and shift migration from existing on-premises relational databases.


1 Answers

There is no way to configure expire_log_days

According to official doc: https://cloud.google.com/sql/docs/replication#binary-log-implication

The storage of binary logs is charged at the same rate as regular data. Cloud SQL retains binary logs from the time when the oldest backup was taken (Cloud SQL currently retains 7 backups).

If you need to delete binary log manually, please contact [email protected]

like image 56
Tianzhou Avatar answered Oct 13 '22 21:10

Tianzhou