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
Issue adding new user with MySql 8.0.11 #14217
Comments
|
According to my tests, breaking SQL in two parts, one for creating the user and second for granting rights, works with MySQL 8.0.11 |
|
Possibly related: #14220. |
|
I researched some notes for whoever fixes this: From the release notes:
|
|
As the PASSWORD() function has been removed, function getHashedPassword needs a modification like this: |
|
hi, MySQL 8.0.11 and phpmyadmin 4.8.1 |
|
I don't use phpmyadmin and i have the same issue. I'm using MySQLWorkbench or Sequel Pro and same issue. That come from mysql. @mysql I'm on a fresh release of mysql 8.0.11 on a mac High Sierra. |
|
mysql release 8.0 on windows server 2013, At no point did I change/update software versions anywhere because this was just a test setup that has been running for less than a month. Is there a fix for this? Can I just export all my schemas and data and reinstall mysql server and import them? |
|
Same issue right now, fresh install of MySQL community server 8.0.11 and phpmyadmin 4.8.2. I was able to create a user from the command line: CREATE USER 'mytest'@'localhost' IDENTIFIED BY 'HelloWorld222'; |
|
Any ETA on a fix? |
|
I don't know if this will solve it for you but after upgrading MySQL from 8.0.11 to 8.0.12 this issue no longer occurs for me. Keep in mind I was only managing privileges/user accounts with MySQL workbench which was having critical errors with .11 but is now functioning perfectly fine with .12. The workaround with version .11 of MySQL is to use the command line with the MySQL console (see TedMurphy's example, you can also change a user's credentials with the proper command). |
|
I am having the same problem and running on CentOS7.5 Even when i try the manual syntax in mysql console - it will error out so I'm not sure that this is specifically phpmyadmin issue. issue is something to do with the way is processed. Any ideas? |
|
Sorry, It has been passed for a long time. I forgot about the detail.
While the problem was that mysql that I used at that time was too advanced so the phpmyadmin cannot compile.
I remember that I reloaded a lower vision of my mysql from official website to match.
You can try it.
Best,
… On Aug 23, 2018, at 5:28 PM, maretodoric ***@***.***> wrote:
I am having the same problem and running on CentOS7.5
MySQL Version 8.0.12
PHP Version 7.2.9
mysqlnd Version 5.0.12-dev
phpMyAdmin Version 4.8.3
Even when i try the manual syntax in mysql console - it will error out so I'm not sure that this is specifically phpmyadmin issue. issue is something to do with the way
REQUIRE NONE WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0;
is processed. Any ideas?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
Yeah, i've figured it has to do with mysql server itself. Nevermind, server is still in pilot phase and if needed we'll downgrade the mysql version. So far client asked for version 8. Thanks ! |
|
I'm having this issue on Ubuntu 16.04.5 LTS Server version: 8.0.12 - MySQL Community Server - GPL I have enabled legacy support, but I don't think that is the issue. If you click through the error, the user appears to be created but without a password. |
|
...and it will not have any privileges, that is it will only have USAGE |
|
I have the same issue installing phpmyadmin: mysql said: ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that Please, Have someone the solution for this? |
|
Same issue on Insert or Update. Server version: 8.0.13 - MySQL Community Server - GPL |
|
ditto phpmyadmin Version information: 4.8.3 (up to date) Server: Localhost via UNIX socket |
|
same issue |
|
GRANT ALL PRIVILEGES ON . TO 'phpmyadmin'@'localhost' WITH GRANT OPTION; |
|
In MySql 8.0 the "REQUIRE NONE" is been absolute and "MAX_QUERIES_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_USER_CONNECTIONS 0" version 8.0 doc: old doc: so the command should be like GRANT ALL PRIVILEGES ON . TO 'xxxxxxx'@'localhost' WITH GRANT OPTION; |
|
Operating system: Ubuntu 18.04.1 LTS Having same issue with the install Error: Are there any work arounds to get PHPMyAdmin installed and working? Or any tips on how to downgrade to an older version on a new DigitalOcean droplet? |
[ci skip] Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
|
Closed by #14788 |
Seems normal as we currently are in 4.8.4 |
|
🤔 I guess I must have missed that. Thanks, I'll clone the 4.8.5 branch. |
|
Issue is fixed in PR #14788 but only when you add a user, when editing an existing user the problem still exists.. |
|
Can confirm. I cloned 4.8.5 recently and well, the issue still exists with user editing. Creating a new user works fine. |
I took a look at libraries/classes/Server/Privileges.php and adjusted the function updatePrivileges(), so that a statement like gets split in two statements: This is a quick and dirty fix for me, someone closer to the project should review it. To avoid changes for older mysql versions the splitting only takes effect for mysqlVersion >=80011. The changed Privileges.php and a diff-file is attached. |
Hi, |
|
I downloaded today phpMyAdmin 5.0.1 - and have MySQL 8.0.19 - and I am also not able to change user permissions:
Createing a new user works :) |
|
please reopen this bug:) |
|
@ThomasCr please try the latest version in development (phpMyAdmin 5.0+snapshot) And if the issue persists open a new issue so we can have a discussion outside of this closed issue |
|
if you still got the problem you can only run this SQL command : GRANT ALL PRIVILEGES ON . TO 'the-user'@'%' ; |
Tried. Also get: #1064 - Fehler in der SQL-Syntax. Bitte die korrekte Syntax im Handbuch nachschlagen bei 'REQUIRE NONE WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_' in Zeile 1 QUERY:
|
|
@saschaende what version are you using and what version of MySQL do you use? |
|
This issue seems to have still something to fix, tracking the progress in #16166 |
|
Hi everybody, I posted the fix in #16166 (comment) Please try it out and let me know on #16166 |



Steps to reproduce
Expected behaviour
New user should be created without error
Actual behaviour
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'REQUIRE NONE WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_' at line 1Additional information:
CREATE USER 'aaa'@'%' IDENTIFIED WITH mysql_native_password AS '***';GRANT USAGE ON *.* TO 'aaa'@'%' REQUIRE NONE WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0;Server configuration
Windows 10 Pro x64 1709
Web server:
Apache x64 2.4.33
Database:
MySQL 8.0.11
PHP version:
7.2.4
phpMyAdmin version:
4.8.0.1
Client configuration
Browser:
Chrome
Operating system:
Windows 10 Home x64 1709
The text was updated successfully, but these errors were encountered: