Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
when in mysql if you type a wrong character, it seems to get stuck in the "->" cursor, how do you cancel it, because currently, I am having to quit mysql delete the database and start again from scratch. Is there a way to undo typo errors, or is this the ultimate in unforgiving software?
Maybe it would help if you specify what you want to do. I find it very strange that you have to delete the database and start all over again.
If you are new to MySql, you might consider using phpMyAdmin. It will provide a graphical interface to manage a database, and gives you the sql code for actions you perform. You can download a portable version (xampp) fromhttps://www.apachefriends.org/index.html. This will give you the opportunity to test things first before you apply them in your live database.
Please note that with xampp comes MariaDB. This works (as far as I know) exactly the same as MySql.
Wrong character?
usually an unpaired single or double quotes in the sql command does it for me.
If that seems to be the case, issue a ' or a " on the
subsequent prompt from mysql.
The problem I have here is that I am learning, and litterally just putting in a mistyped spelling of something suddenly becomes a case of delete whole thing and start again, in writing this post I have made at least 15 typos, but used the delete key to get rid of them, when using emacs, I can edit as I like, even in the terminal or a python shell, I can go back and redo a mistake, but with MySQL, tap a ' and enter by mistake, and that's it, can't get out of the string cursor, without closing down MySQL, is there not just a simple combination that can cancel the last entry made?
keefaz, perfect, thank you very much, you also showed me how to search for my own help also (which I should have been able to work out, but with an iq similar to my shoe size I wasn't able to), thanks.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.