Skip to content
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

Error when creating new user on MariaDB 10.0.21 #11500

Closed
Moowalker opened this issue Sep 25, 2015 · 4 comments
Closed

Error when creating new user on MariaDB 10.0.21 #11500

Moowalker opened this issue Sep 25, 2015 · 4 comments
Labels
Bug A problem or regression with an existing feature
Milestone

Comments

@Moowalker
Copy link

Hello,

When trying to create a new user (User accounts -> Add user account) I get the following errors

#1065 - Query was empty

and then

The selected user was not found in the privilege table.

Running the following query generated my phpmyadmin

CREATE USER 'test_user'@'localhost' IDENTIFIED WITH mysql_native_password BY '***';GRANT ALL PRIVILEGES ON *.* TO 'test_user'@'localhost' REQUIRE NONE WITH GRANT OPTION MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0;

gets the following error

Error
Static analysis:

1 errors were found during analysis.

Unrecognized statement type. (near "WITH" at position 47)
SQL query:

CREATE USER 'test_user'@'localhost' IDENTIFIED WITH mysql_native_password BY '***'

MySQL said: Documentation

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'BY '***'' at line 1

If I remove WITH mysql_native_password from the query, they query is executed fine.

Versions: CentOS release 6.7 (Final)
Apache: Apache/2.2.15
PHP: PHP 5.5.29
PHP extension: mysqli
Database: 10.0.21-MariaDB-log MariaDB Server
Database client version: libmysql

@devenbansod
Copy link
Member

Looking into it.

@holyfive
Copy link

Same thing here. Perhaps it is an issue regarding the interaction with MariaDB? We are also using 10.0.21 on CentOS 6.

@lem9 lem9 changed the title Error when creating new user Error when creating new user on MariaDB 10.0.21 Sep 25, 2015
devenbansod added a commit to devenbansod/phpmyadmin that referenced this issue Sep 25, 2015
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
@devenbansod
Copy link
Member

Please see : #11501

The issue is with the difference in create user syntax supported by MySQL 5.7+ and MariaDb 10.0.21.

devenbansod added a commit to devenbansod/phpmyadmin that referenced this issue Sep 25, 2015
Signed-off-by: Deven Bansod <devenbansod.bits@gmail.com>
lem9 added a commit that referenced this issue Sep 25, 2015
@holyfive
Copy link

Works for me, great. Thanks!

@lem9 lem9 added the Bug A problem or regression with an existing feature label Sep 25, 2015
@lem9 lem9 added this to the 4.5.1 milestone Sep 25, 2015
@lem9 lem9 closed this as completed Sep 25, 2015
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 29, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A problem or regression with an existing feature
Projects
None yet
Development

No branches or pull requests

4 participants