-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change default database name in Operations > Copy database to #13099
Comments
I forgot to metion one step: tick "drop table/view" box... |
Signed-off-by: Raghuram Vadapalli<raghuram.vadapalli@research.iiit.ac.in>
Signed-off-by: Raghuram Vadapalli<raghuram.vadapalli@research.iiit.ac.in>
I'm fixing it. Just need to write test for it |
@thesaturn , I just made sure that default name is not already existing. Try to look into why data is getting corrupted if the db name is same and fix it. I feel that is the major issue here :) . |
Related to #12233 which was about the "Rename" dialog, not copy. |
We should definitely catch cases when the user tries this and provide a reasonable error message, but I think we also should remove the default suggestion from the copy and rename fields. |
@ibennetch , Any specific reason why you want defaults to be removed? I feel they are good to enable user to create a copy of db within a single click (typical use of any default) . |
So I tried to fix it. I wrote a message and check if new name is the same as current. But I don't know how to write selenium test for that |
Signed-off-by: Raghuram Vadapalli<raghuram.vadapalli@research.iiit.ac.in>
Signed-off-by: Raghuram Vadapalli<raghuram.vadapalli@research.iiit.ac.in>
Issue #13099 Signed-off-by: Raghuram Vadapalli<raghuram.vadapalli@research.iiit.ac.in> Signed-off-by: Michal Čihař <michal@cihar.com>
The DROP TABLES checkbox should be removed as well.. dropping tables should be a separate operation. Perhaps an additional check to ensure the destination is empty? |
The DROP TABLES could be useful - for example, for making a fresh copy of production environment for test and so on. |
One can easily drop all tables before importing the DB. |
Well... yes, there are workarounds, but if this option exists on command line I do not see a reason not to implement it in GUI as well (where it is not selected by default). |
Dropping tables is dangerous..
Does pMA have a command line? :p |
mysqldump --add-drop-table |
One doesn't write --add-drop-table by accident, clicking a checkbox however.. --add-drop-table is on by default though, which I think is a mistake for the same reason. |
you didn't mention any reasoning in your original suggestion... could you please elaborate? |
|
Steps to reproduce
Expected behaviour
Actual behaviour
Get data in your database corrupted.
I really do not understand what might be a real use case for the default behavior of pma, when it populates current database name...
Server configuration
Operating system: CentOS Linux release 7.3.1611 (Core)
Web server: Apache 2.4.25
Database: 10.1.21-MariaDB - MariaDB Server
PHP version: 5.6.30
phpMyAdmin version: 4.6.6
Client configuration
Browser: Chrome
Operating system: Windows 10
The text was updated successfully, but these errors were encountered: