This is a new release of HeidiSQL, the result of 331 changes done after the previous 5.1 release. HeidiSQL 6.0 introduces many new features of which I'll list the most important ones here:
- Tabs for multiple batch results or multiple procedure results in a query tab.
- Multiple connections in one application instance
- Editable query results
- Rewritten user manager, using GRANT and REVOKE syntax now
- Rewritten "Copy table" dialog and logic, supporting WHERE filters now
- Rewritten "Load text file" dialog and logic, supports client side parsing for situations where LOAD DATA is not allowed
- Rewritten SQL help dialog
- Query profiling in query tabs
- Introduce "Run current query" action (Shift+Ctrl+F9)
- Enhance detection of Unicode text files
- Server details hint when mouse over version status panel
- Internal image previewer for BLOBs
- LaTeX and Wiki markup output for grids
- ZEROFILL support in table editor
- Session manager: Prompt for username and password on demand
- Add support for TIME values above 24 hours
- Tons of bugfixes
Grab it
HeidiSQL 6.0 released
Looks like you activated SQL mode NO_AUTO_CREATE_USER, which does avoid to create users when you don't specify a password. Please type a password for new users in that case. The error message is though a bit misleading, but that's up to MySQL itself.
See
http://bugs.mysql.com/bug.php?id=7000
http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html
See
http://bugs.mysql.com/bug.php?id=7000
http://dev.mysql.com/doc/refman/5.0/en/server-sql-mode.html
Hi,
To avoid this problem, Heidi could launch the CREATE USER statement before launching the GRANT statement (when you create a new user).
Or Heidi could use "GRANT .. TO .... IDENTIFIED BY password".
I noticed HEIDI doesn't use the "IDENTIFIED BY" clause, but use two statement (GRANT and SET PASSWORD).
I think that if you'd use "GRANT ... IDENTIFIED BY...", the error wouldn't occur.
To avoid this problem, Heidi could launch the CREATE USER statement before launching the GRANT statement (when you create a new user).
Or Heidi could use "GRANT .. TO .... IDENTIFIED BY password".
I noticed HEIDI doesn't use the "IDENTIFIED BY" clause, but use two statement (GRANT and SET PASSWORD).
I think that if you'd use "GRANT ... IDENTIFIED BY...", the error wouldn't occur.
Code modification/commit
a2e20b0
from ansgar.becker,
14 years ago,
revision 6.0.0.3606
Use CREATE USER query for added users, as required since 5.0.2 servers when password is empty. Works around SQL error 1133 (Can't find any matching row in the user table). See http://www.heidisql.com/forum.php?t=6948
"--" comments need a space afterwards. See http://dev.mysql.com/doc/refman/5.1/en/comments.html .
Just the syntax highlighter is perhaps misleading as it displays the two dashes without space as comment, but that should be fixed in SynEdit.
Just the syntax highlighter is perhaps misleading as it displays the two dashes without space as comment, but that should be fixed in SynEdit.
It looks like HeidiSQL is injecting a semicolon onto the end of every statement. For instance, consider the following statement:
This statement now fails in HeidiSQL 6, when it worked fine in all previous versions of HeidiSQL. If you look in the statement log, you'll see that HeidiSQL is actually running the following statement:
Other than that, everything in HeidiSQL 6 has worked fine for me!
Thank you for putting so much effort into HeidiSQL. It is a tool I use every single day.
DELIMITER $$
This statement now fails in HeidiSQL 6, when it worked fine in all previous versions of HeidiSQL. If you look in the statement log, you'll see that HeidiSQL is actually running the following statement:
DELIMITER $$;
Other than that, everything in HeidiSQL 6 has worked fine for me!
Thank you for putting so much effort into HeidiSQL. It is a tool I use every single day.
I generally use the delimiter statement when creating stored procedures. For instance, I might execute the following SQL code:
As a follow-up, the workaround to this is to use the delimiter feature built into Heidi. If I click the delimiter button, and specify "$$" as my delimiter, then I can execute just the following:
DELIMITER $$
DROP PROCEDURE IF EXISTS spHelloWorld $$
CREATE PROCEDURE spHelloWorld()
BEGIN
SELECT 'Hello World!';
END $$
DELIMITER ;
As a follow-up, the workaround to this is to use the delimiter feature built into Heidi. If I click the delimiter button, and specify "$$" as my delimiter, then I can execute just the following:
DROP PROCEDURE IF EXISTS spHelloWorld $$
CREATE PROCEDURE spHelloWorld()
BEGIN
SELECT 'Hello World!';
END $$
Please login to leave a reply, or register at first.