I'm new to MySQL and I am facing a little problem that I couldn't find an answer to in any previous thread here, so I was hoping someone could help, okay here it is:
When typing a request on mysql (on the terminal) you can just press enter to make it stand on many lines instead of one, but how do you get back to a previous line ?
I tried the arrow buttons and it didn't work, neither did the backspace button, any help is welcome, thank you in advance!
The mysql command uses the readline library. Each input line is edited independently, so once you press Return you can no longer go back and modify that line. The arrow keys will recall the line, but it's inserted into the current line being edited, and appends to the query.
So the solution is to NOT press Return until you've finished typing the whole query.
If you mean to show previously entered lines in order to send them again, according to the MySQL website, it should work via the up/down keys.
[...] the up-arrow and down-arrow keys move up and down through the set of previously entered line
http://dev.mysql.com/doc/refman/5.0/en/mysql-tips.html
Related
I hope someone could help me with this thanks
I used characters ()() to split out into a new column to capture specific information for example ()info 1(), this works fine the new column now has info 1 as expected however the characters ()() needs be used more than once so when ()info 2() is entered it over writes info 1. is there a way to stop this from happening so it keeps a running history?
example of what I have
1.Case
2.when Trim(Split([column name],"()",2))!='0' Then Trim(Split([column name],"()",2))
3.End
I've just downloaded the Maple 2020 trial version and I have zero experience on Maple programming. My problem is: when I do simple calculations such as 3+5 or 2*3, the result displays on the screen but, for other functions such as
factor(x^2+2x+1);
or assigning variables can't be done:
n:= 5;
m:=7;
m+n;
I do not see any results on the display screen after the enter.
Where am I doing wrong?
It seems like, I need to change some configurations of the Maple. After doing some search online, I found these suggestions in a web site. I have applied the following steps and my problem is solved: (Remember to apply globally not for the session.)
Open a new blank worksheet
On the toolbar, access Tools->Options.
Select the 'Display' tab
Ensure that the first entry is set to 'Maple Notation', and the second entry is set to '2-D Math Notation'
Click 'Apply to session' at the bottom left
On the toolbar, access Tools->Options again
Select the 'Interface' tab
Ensure that the entry 'Default format for new worksheet' is set to 'Worksheet'
Click 'Apply to session' at the bottom left
Now open a new worksheet in the same session. There should be a prompt '>'.
At the prompt, type 'version();' without the single quotes, but with the trailing semi-colon. This ought to return details of the precise Maple version you are running. If it returns something like
User Interface: 1133417
Kernel: 1133417
Library: 1133417
(precise numbers may be different), then you ought to be good to go - so try something simple like 1+1; at the next command prompt, (remember the semicolon).
I want to dump some of my entities using webadmin console like this:
dump match (n:Country) return n;
But there are two problems with this. First: the output has leading arrows ==> which get selected along with the rest of the text:
==> begin
==> create constraint on (n:`Country`) assert n.`code` is unique
==> create (_3923:`Country` {`alt_name`:"Malta", `code`:"MT"})
==> create (_3924:`Country` {`alt_name`:"Germany", `code`:"DE")
==> create (_3925:`Country` {`alt_name`:"France", `code`:"FR"})
==> create (_3926:`Country` {`alt_name`:"Italy", `code`:"IT"})
==> create (_3927:`Country` {`alt_name`:"Spain", `code`:"ES"})
==> create (_3928:`Country` {`alt_name`:"Poland", `code`:"PL")
==> create (_3929:`Country` {`alt_name`:"Belgium", `code`:"BE"})
==> create (_3930:`Country` {`alt_name`:"Sweden", `code`:"SE"})
==> create (_3931:`Country` {`alt_name`:"Austria", `code`:"AT"})
==> create (_3932:`Country` {`alt_name`:"Greece", `code`:"GR"})
==> create (_3933:`Country` {`alt_name`:"Ireland", `code`:"IE"})
==> ;
==> commit
And secondly the text selection disappear as soon as I release mouse button (this one is an issue only in Chrome - when I use Firefox the selection behaves normally).
I know that I can use the system shell to connect to Neo4j shell, and those problems are gone. But I don't always have access to the server's shell and setting up a connection directly to Neo4j shell is a waste of time since I have the console already open in the browser.
First question: is there a way to configure the Webadmin console in such way that it would not display the leading arrows? Second: how to make selection behave properly in Chrome?
I can help you with your second question, at least on a Mac with a mouse. (I don't know if this works on Windows.) If this works for you, then your first question should be moot, since you can just copy and edit the dump result.
Use the left mouse button to select the lines you want.
Keeping the left mouse button depressed, click the right mouse button.
The popup context menu displays, and "Copy" should be an option.
You should be able to release both mouse buttons, without losing the selection or the context menu.
Click on the "Copy" option to copy the selection to the clipboard. (The context menu goes away but the selection now remains!)
Paste from the clipboard to your favorite editor.
i have a simple form with a textarea and a save button.
what is entered in the field is stored in mysql and then displayed on another page.
each time you enter stuff in the textarea and save, it saves it on top of what is already stored, making an even longer string, if you see what i mean.
im using mysql_real_escape_string
on testing, when i enter an apostrophe for the first time it is displayed as \' which is correct. but when i enter an apostrophe again it breaks down
what is going on?
thanks
ahh. sorry. just worked it out. i wasnt escaping the original data that was being stored and then added on to the new data - if that makes sense
For some reason while using PHPMyAdmin and attempting to save a table, even though I've entered all of the information I usually do I'm getting an alert box popping up with the content "Missing value in the form!".
Here's a screenshot of my PHPMyAdmin console (2 screens merged due to resolution):
PHPMyAdmin Create Table Modal Box
What I've tried so far:
Changing the data types all to VARCHAR with a length of 255 (except for the deindeal_id column, which remained INT with a length of 12).
Encasing description in "`" (bacticks), thinking it may be a reserved word of some sort.
Adding a coalition.
Using different table engines (InnoDB, MyISAM (the one I wanted)).
I'm really stumped as to what could be causing this issue, so any answers would be greatly appreciated!
Looks like a bug. Try going to Settings -> Features -> General tab and disable Ajax.
Then, try to create a new table and it won't use the popup.
I had this issue with the SQL form (where you can paste larger blocks of MySQL code). Not sure if it's a fluke, but I selected all of my input and then hit Go..and it worked.
Did you give it a table name.
I had the same problem & I simply forgot to give it a table name...at the top.
Got the same error, probably a Bug.
What Lex said: "Maybe if you define a column NOT NULL (ie. don't check the box in the Null column, you have to define a default value? – Lex 20 hours ago"
Nope. Doesn't work either and wouldn't make much sense. If you don't define a default value, the server will either insert an empty string, or fail the query; depending on settings.
I just encountered this....
It turns out I was forgetting to provide a name for the new table....
It's a bug I also "met" on phpMyAdmin v.3.5.1 - Disabling Ajax (and by default I love to disable it) will do the job.
Stop & start MySQL service. You can create table.
Yes It's a bug. what I did is to stop xampp (or if you're using wampp),
and then start them again. after that you will be able to create the table in phpMyAdmin
You can also try USE databasename; at the top of your query. In some versions this error seem to happen even if you did select your database, USE databasename; will fix this bug in those situations.
I just encountered this in 4.1.11. Seems to be a bug (again?). Disabling the popup and switching to the original theme resolved it somewhat for me, although you'll be without the popup which is a pain in the behind.
Switch back to Original theme:
Home > Theme: "Original"
Disable the popup:
Home > More settings > SQL queries > Disable: "Edit in window"
I got this problem too and I had opened same database in phpmyadmin in two separate tabs of browser . When I closed one tab and access phpmyadmin, the problem disappeared.
Just to let you know folks. Turning off my AdBlock Plus finally solved it for me. No more Missing value in the form! pop-ups when trying to submit something. Whitelist phpMyAdmin domain in any style or script altering add-on you might use.