By default, Cloud Databases does not enable the root user. In most
cases, the root user is not needed, and having one can leave you open to
security violations. However, if you do want to enable access to the root user:

$rootUser=$instance->enableRootUser();

This returns a regular User object with the name attribute set
to root and the password attribute set to an auto-generated
password.