In Progress
Status Update
Comments
sa...@google.com <sa...@google.com> #2
Your feature request was forwarded to the Cloud SQL engineering team to be evaluated. However, there is no ETA or guarantee of implementation. All future updates should occur here.
sa...@google.com <sa...@google.com>
ka...@karsthammer.nl <ka...@karsthammer.nl> #3
+1, we would also really like to see this feature so we can leverage the export/import functionality to quickly duplicate databases.
da...@commercebuild.com <da...@commercebuild.com> #4
+1, we have a multi-tenant system with each tenant in their own schema. We are trying to use export/import to 'clone' a tenant but instead of creating a new instance the import overwrite the existing.
We are using the REST API
We are using the REST API
s....@reply.com <s....@reply.com> #5
+1
da...@gmail.com <da...@gmail.com> #6
+1
br...@gmail.com <br...@gmail.com> #7
+!
je...@razorsecure.com <je...@razorsecure.com> #8
+1
[Deleted User] <[Deleted User]> #9
+1
da...@gmail.com <da...@gmail.com> #10
+1
[Deleted User] <[Deleted User]> #11
+1
s....@gmail.com <s....@gmail.com> #12
Hello.
This is not a difficult feature to implement . It's just a switch added or ignored. It will move the platform to new levels of speed and efficiency. At the moment, export a DB with the Gcloud command make it useless for lower environments. It is bound to the environment . Imagine a project that uses DB names as "acme-live" for the Production environment, "acme-uat" for UAT, "acme-qa1" for QA1 and so on and so forth.
The Cloud Engineering team could argue that using different database schema names for different environments should be an easy fix, just align all your DB Schema names to "acme".
That would be a sane choice for new "joiners" . For projects that are using the GCP platform for years and they have already configured these, it's not as easy. Especially when production has "acme-live" . Either all the environments need to use the "-live" extension or re-import the Moving DB from a Production environment (downtime - unacceptable). Schema Name "acme-live" on non production environments, Security team' nightmare.
Adding the option "--no-create-db" in your code, wouldn't be a task lasting more than a few hours.
I would suggest to add it as soon as possible and offer it as an ALPHA feature. If the users keep having issues, by all means, please trash it and give us a serious life lesson, instead of us waiting for features and arguing if somethings needs to be implemented or not.
Apologies for the long comment. had I believed this feature doesn't deserve your attention, I would have never replied on the thread. I believe it's a valid and very helpful request. An option that the other providers does not have it yet.
Best regards.
This is not a difficult feature to implement . It's just a switch added or ignored. It will move the platform to new levels of speed and efficiency. At the moment, export a DB with the Gcloud command make it useless for lower environments. It is bound to the environment . Imagine a project that uses DB names as "acme-live" for the Production environment, "acme-uat" for UAT, "acme-qa1" for QA1 and so on and so forth.
The Cloud Engineering team could argue that using different database schema names for different environments should be an easy fix, just align all your DB Schema names to "acme".
That would be a sane choice for new "joiners" . For projects that are using the GCP platform for years and they have already configured these, it's not as easy. Especially when production has "acme-live" . Either all the environments need to use the "-live" extension or re-import the Moving DB from a Production environment (downtime - unacceptable). Schema Name "acme-live" on non production environments, Security team' nightmare.
Adding the option "--no-create-db" in your code, wouldn't be a task lasting more than a few hours.
I would suggest to add it as soon as possible and offer it as an ALPHA feature. If the users keep having issues, by all means, please trash it and give us a serious life lesson, instead of us waiting for features and arguing if somethings needs to be implemented or not.
Apologies for the long comment. had I believed this feature doesn't deserve your attention, I would have never replied on the thread. I believe it's a valid and very helpful request. An option that the other providers does not have it yet.
Best regards.
ha...@gmail.com <ha...@gmail.com> #13
+1
ti...@gmail.com <ti...@gmail.com> #14
I am also requesting this!
[Deleted User] <[Deleted User]> #15
Following along, it'd be great if a variety of mysqldump type flags could be passed.
al...@gmail.com <al...@gmail.com> #16
+1
[Deleted User] <[Deleted User]> #17
+1
ma...@dynamo6.com <ma...@dynamo6.com> #18
+1
[Deleted User] <[Deleted User]> #19
+100
ma...@gmail.com <ma...@gmail.com> #20
This would be an awesome feature to have especially because there is the option on import to set the db name you want to import too.... Though only as long as it is not mention in the sql import files :(
ja...@appnovation.com <ja...@appnovation.com> #21
+101
jk...@coinmotion.com <jk...@coinmotion.com> #22
We are still wasting a comical amount of working hours because of this thing.
[Deleted User] <[Deleted User]> #23
Hi folks! Any update about this request?
da...@dynamo6.com <da...@dynamo6.com> #24
Comment has been deleted.
h....@dauus.com <h....@dauus.com> #25
+1 any update here
hl...@bexio.com <hl...@bexio.com> #26
+1
to...@bexio.com <to...@bexio.com> #27
+1
re...@puzzleyou.cz <re...@puzzleyou.cz> #28
Exporting data only without creating objects is a necessary feature. An important use case is exporting a production database to a testing database for doing an integration test of a new feature in an application.
Vice versa, it is dangerous to automatically recreate a database instance from an import, because this overwrites an existing instance, which might be a production instance. This is even more worse since there is an option to choose a target database in the Cloud Console, which is silently overridden. Not really clever.
Vice versa, it is dangerous to automatically recreate a database instance from an import, because this overwrites an existing instance, which might be a production instance. This is even more worse since there is an option to choose a target database in the Cloud Console, which is silently overridden. Not really clever.
re...@puzzleyou.cz <re...@puzzleyou.cz> #29
For example, my need for exporting data from a database and reimport it to the same Cloud SQL instance, but a different database, can be actually done only the following way:
mysqldump -h "${DB_HOST}" -u "${DB_USER}" --password="${DB_PASS}" \
--no-create-db --no-tablespaces \
--opt --skip-lock-tables \
--complete-insert --single-transaction \
--default-character-set=utf8mb4 \
"${DB_NAME}" \
| gzip \
| gsutil cp - "${DUMP_FILE_URI}"
gcloud sql import sql "${GCLOUD_SQL_INSTANCE}" "${DUMP_FILE_URI}" --database="${DB_NAME_TESTING}"
I miss these options of mysqldump and safely switching the database within one Cloud SQL instance.
mi...@homeserve.fr <mi...@homeserve.fr> #30
Hello can you add the --no-create-db arg to gcloud sql export ?
st...@delcom.nl <st...@delcom.nl> #31
This would be very usefull
Description
See