Configure a Cloud SQL for MySQL database

The following sections cover how to configure a Cloud SQL for MySQL database to work with Datastream.

Enable binary logging

  1. To enable binary logging for Cloud SQL for MySQL, see Enabling point-in-time recovery.

Create a Datastream user

  1. To create a Datastream user, enter the following MySQL commands:

    CREATE USER 'datastream'@'%' IDENTIFIED BY 'YOUR_PASSWORD';
    GRANT REPLICATION SLAVE, SELECT, REPLICATION CLIENT ON *.* TO 'datastream'@'%';
    FLUSH PRIVILEGES;