Comments on: MySQL command line vs. visual editors https://shlomi-noach.github.io/blog/mysql/mysql-command-line-vs-visual-editors Blog by Shlomi Noach Fri, 17 Feb 2012 16:37:06 +0000 hourly 1 https://wordpress.org/?v=5.3.3 By: shlomi https://shlomi-noach.github.io/blog/mysql/mysql-command-line-vs-visual-editors/comment-page-1#comment-70235 Fri, 17 Feb 2012 16:37:06 +0000 https://shlomi-noach.github.io/blog/?p=4639#comment-70235 @Ben,
Yes, no doubt it is unthinkable to create stored routines code directly with the command line. Visual editors are great for that.

BTW, an alternative is to use the SOURCE command from the command line client, such that I edit my stored routine code in my favorite text editor, then just SOURCE ‘/path/to/my/code.sql’

]]>
By: Ben Uphoff https://shlomi-noach.github.io/blog/mysql/mysql-command-line-vs-visual-editors/comment-page-1#comment-70233 Fri, 17 Feb 2012 16:30:08 +0000 https://shlomi-noach.github.io/blog/?p=4639#comment-70233 Regarding “The visual editor would open a new connection for every new query (oh, so the @user_defined_variable I’ve just assigned turns NULL, or the TEMPORARY TABLE disappears).”:

I use MySQL Workbench for my development work, and most of that work is in fairly sophisticated stored procedures. I do find that my temporary tables persist, as I’ve been able to query them independently of the output from my procedures.

I concur with your sentiment that people should know and be able to develop SQL via the command line; however, editing thousand-line plus procedures using the command line is cumbersome; a visual editor like MySQL Workbench is the way to go

]]>
By: Chirag N R https://shlomi-noach.github.io/blog/mysql/mysql-command-line-vs-visual-editors/comment-page-1#comment-68170 Wed, 01 Feb 2012 15:45:53 +0000 https://shlomi-noach.github.io/blog/?p=4639#comment-68170 To start, CLI cannot match the productivity gain of GUI tools and GUIs cannot match the flexibility of CLIs to a certain extent. Keeping the discussion limited to the academic usage, I think learning has to be fun and GUIs add this fun element. Students can easily start playing with GUIs and can visualize things under the hood. I think tools also make students curious to try out something new. They might end up discovering a concept all by themselves which they wouldn’t have otherwise unless reading a thick volume.

]]>
By: MySQL command line vs. visual editors – reflections | code.openark.org https://shlomi-noach.github.io/blog/mysql/mysql-command-line-vs-visual-editors/comment-page-1#comment-67992 Wed, 01 Feb 2012 08:19:19 +0000 https://shlomi-noach.github.io/blog/?p=4639#comment-67992 […] MySQL command line vs. visual editors – reflections […]

]]>
By: shlomi https://shlomi-noach.github.io/blog/mysql/mysql-command-line-vs-visual-editors/comment-page-1#comment-67978 Wed, 01 Feb 2012 07:44:00 +0000 https://shlomi-noach.github.io/blog/?p=4639#comment-67978 @Mahesh,
I agree.

]]>
By: shlomi https://shlomi-noach.github.io/blog/mysql/mysql-command-line-vs-visual-editors/comment-page-1#comment-67977 Wed, 01 Feb 2012 07:42:57 +0000 https://shlomi-noach.github.io/blog/?p=4639#comment-67977 @Rohit,
Thank you. Yes, I agree this is a feature, I didn’t suggest it is a bug. And I realize many users sent you feedback saying “we just want to see a sample of the data”. And you would not be able to load 1,000,000 rows into the GUI widget you are using (who wants to browse through 1,000,000 rows anyway?)

And your tool wants to be smart. Who wants to use a stupid GUI tool? Being smart is important.

Everything that is smart falls into the corner of not satisfying the minority who actually want something else.

I’m suggesting that the command line client, being not-smart, shows the de-facto real picture, and is the place to go to for reference.

]]>
By: Mahesh Patil https://shlomi-noach.github.io/blog/mysql/mysql-command-line-vs-visual-editors/comment-page-1#comment-67974 Wed, 01 Feb 2012 07:36:51 +0000 https://shlomi-noach.github.io/blog/?p=4639#comment-67974 @Shlomi,

I can understand your concern about using Command Line and other Visual Editors.
Using any Visual Editors definitely you will not be known to syntax for DDL and DML statements.
For student or MySQL trainee one must use command line for basic SQL operations and understanding MYSQL internals i.e. Related to server metadata, user management etc..
Once they gain intermediate knowledge about SQL and MySQL internals.. they can opt for Visual tools using this they will improve productivity and something which is found in Visual tool not in command line (Like LIMIT 1000 and pagination kind of result set) as they already gained enough knowledge to check what queries being executed in background.
Also using Visual tools they can save time for doing tasks such as CREATE TABLE, FK RELATIONSHIP , Build queries, Optimize queries, User Management, Sync Schemas/Data etc.. which can be difficult and time consuming tasks using Command line isn’t it? 🙂

]]>
By: Rohit Nadhani https://shlomi-noach.github.io/blog/mysql/mysql-command-line-vs-visual-editors/comment-page-1#comment-67952 Wed, 01 Feb 2012 06:44:28 +0000 https://shlomi-noach.github.io/blog/?p=4639#comment-67952 @Shlomi,

There are reasons why GUI tools behave in certain ways. A lot of thought has been put into each of these aspects.

For example, I want to explain why there is a limit of 1000 rows in SQLyog “by default”, as this behavior has been specifically pointed out in your post.

In the command line, it takes a little more effort to look at the contents of a table. At the very minimum, you have to type “select * from “.

In SQLyog, viewing the data is just a single click on the table name. When it is that simple, users have the tendency to click on one table after another in quick succession when they want to “study” a database. They just want to quickly look at a few rows and see what type of data each of these tables contain.

For such use-cases, it would be annoying to bring up all rows of a table if that particular table has thousands of rows. It is just wasteful — both on the client and the server.

Earlier versions of SQLyog didn’t have this “feature” 🙂 We built this based on feedback from thousands of SQLyog users.

]]>
By: shlomi https://shlomi-noach.github.io/blog/mysql/mysql-command-line-vs-visual-editors/comment-page-1#comment-67858 Tue, 31 Jan 2012 20:22:58 +0000 https://shlomi-noach.github.io/blog/?p=4639#comment-67858 @wlad,
point well taken.

Like I said, most students revert back to whatever feels more comfortable to them, and I don’t object.

If my post read to you like “I do not allow use of GUI tools in my classes”, then I have failed to deliver the message properly. It is not as such, but rather “I see importance that students know how to use the command line and that what they get from visual editors may not be consistent with what they get from command line”. And I confess I do encourage them to use the command line, after all.

To the other extreme, I don’t think the learning process should fully comply with whatever students are doing and using. For example, if they all use Windows, that doesn’t mean I shouldn’t be telling them on the advantages of using MySQL on linux. I may just even go as far as suggesting that they should try linux.

I think you have also extra-extrapolated your conclusion about “the dogmatic one true way”. I did *not* say people should not be using visual editors. I *do* say they should be using the command line. To be very verbose: they can do so even while working with their visual editors. I stand by my point: if you don’t know how to do it with command line, you can’t really know how it’s done.

“I don’t know it. It sucks” is truly a bad approach. I do not think I take this approach. Since you do believe I do, allow me to take a few days to reflect upon myself. It is possible others see in me things I do not see in myself (though a bit extreme to diagnose a person from a single blog post), and I will think this over as good measure.

]]>
By: wlad https://shlomi-noach.github.io/blog/mysql/mysql-command-line-vs-visual-editors/comment-page-1#comment-67857 Tue, 31 Jan 2012 20:07:48 +0000 https://shlomi-noach.github.io/blog/?p=4639#comment-67857 I do not think learning process should be centered around what teacher knows. It must be more student oriented. And if students use GUI tools, and they will use them after your course, then it is good if teacher knows them as well. And does not only show the dogmatic “one true way”, i.e something teacher personally is most comfortable with.
Also generally, I do not have much trust in posts that roughly translate to “I don’t know it. It sucks”

]]>