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

MySQL 8.0 password syntax error when creating a replication issue #15282

Closed
scorobo opened this issue May 21, 2019 · 10 comments
Closed

MySQL 8.0 password syntax error when creating a replication issue #15282

scorobo opened this issue May 21, 2019 · 10 comments
Assignees
Labels
Bug A problem or regression with an existing feature
Projects
Milestone

Comments

@scorobo
Copy link

scorobo commented May 21, 2019

Describe the bug

I get error when change user password.

To Reproduce

Steps to reproduce the behavior:

  1. Go to Accounts
  2. Choose an account
  3. Click on Change password
  4. Generate new password and click on Forward (Apply)
  5. See error - on my Print Screen:

image

  1. Go to Accounts
  2. Choose an Account Information
  3. Click on Change some information
  4. Click forward (apply) om button in area "Create new user ...."
  5. Generate new password and click on Forward (Apply)
  6. See error - on my Print Screen:

image

Server configuration

  • Operating system: Ubuntu 18.04.1 LTS
  • Web server: nginx/1.14.0 (Ubuntu)
  • Database version: mysql 8.0.15-6
  • PHP version: PHP 7.2.17-0ubuntu0.18.04.1
  • phpMyAdmin version: 4.8.5 and 5.0.0-dev (tested on both)

Client configuration

  • Browser: Firefox latest
  • Operating system: Ubuntu

I found only two errors, but I think, that it is incompatibility of phpmyadmin and mysql 8.
How can I fix it?

@williamdes
Copy link
Member

@scorobo can you paste the query here (without the password) ?

@williamdes williamdes added the question Used when we need feedback from the submitter or when the issue is a question about PMA label May 23, 2019
@scorobo
Copy link
Author

scorobo commented May 23, 2019

@scorobo can you paste the query here (without the password) ?

  1. SET PASSWORD FOR 'username'@'x.x.x.x' = PASSWORD('****************')
  2. GRANT USAGE ON . TO 'username'@'x.x.x.x'

P.S.
We upgraded mysql to 8th version and got this errors. After that I installed new versions of PHPMyAdmin. It is very strange, because I logged in PHPMyAdmin with root login. I can create users, clone users. But I got errors on the simple requests, listed above.

@williamdes
Copy link
Member

@scorobo Can you try with the next patch version (8.0.16) of MySQL ?

@scorobo
Copy link
Author

scorobo commented Jun 11, 2019

@scorobo Can you try with the next patch version (8.0.16) of MySQL ?

No, we can't, because it (8.0.15-6) is production server already.

@williamdes
Copy link
Member

@scorobo Can you try the latest versions we have available on our website ?

@williamdes williamdes self-assigned this Dec 24, 2019
@d2inco
Copy link

d2inco commented Feb 2, 2020

This issue is still present with PMA 5.0.1 and Mysql 8.0.17

@williamdes williamdes added this to Needs triage in Questions via automation Feb 3, 2020
@williamdes williamdes moved this from Needs triage to Needs a second check to be a bug in Questions Feb 3, 2020
@williamdes
Copy link
Member

@d2inco could you please give detailed instructions to reproduce this issue?

@d2inco
Copy link

d2inco commented Feb 3, 2020

  • Build a new lab machine with CentOS 8.0, and upgrade to CentOS 8.1.
  • dnf install mysql-server, enable it, start the server.
  • run mysql_secure_installation to set root account password.
  • Grant access to root on remote box so that I can access via phpmyadmin.
  • Log into PhpMyAdmin v.5.0.1, on the remote box.
  • Add User Account: 'david', '%', (password), all admin privileges, GO.
    --> This does work.
  • Go to replication menu, Add Slave User. "slaveuser", any host, (password):
    --> complete patch for #4279 ctrl + up/down #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 'BY 'password'' at line 1
    --> CREATE USER 'slaveuser'@'%' BY '***';GRANT REPLICATION SLAVE ON . TO 'slaveuser'@'%';

@williamdes williamdes reopened this Feb 3, 2020
Questions automation moved this from Needs a second check to be a bug to Needs triage Feb 3, 2020
@williamdes
Copy link
Member

Thank you so much I will try ASAP

@williamdes williamdes moved this from Needs triage to Needs a second check to be a bug in Questions Feb 3, 2020
@williamdes williamdes added this to the 5.0.2 milestone Feb 18, 2020
@williamdes williamdes changed the title phpmyadmin 4.8.5 and 5.0.0-dev + mysql 8.0.15-6 = gets syntax erros phpmyadmin 4.8.5 and 5.0.0-dev + mysql 8.0.15-6 = gets syntax errors Feb 20, 2020
@williamdes williamdes added this to Needs triage in issues via automation Feb 22, 2020
@williamdes williamdes removed this from Needs a second check to be a bug in Questions Feb 22, 2020
@williamdes williamdes added Bug A problem or regression with an existing feature and removed question Used when we need feedback from the submitter or when the issue is a question about PMA labels Feb 22, 2020
@williamdes williamdes moved this from Needs triage to Reproduced in issues Feb 22, 2020
@williamdes williamdes changed the title phpmyadmin 4.8.5 and 5.0.0-dev + mysql 8.0.15-6 = gets syntax errors MySQL 8.0 password syntax error when creating a replication issue Feb 22, 2020
williamdes added a commit that referenced this issue Feb 22, 2020
Signed-off-by: William Desportes <williamdes@wdes.fr>
@williamdes
Copy link
Member

Thank you for your patience and help
This issue will be fixed in next 5.0 release
Patch: e671ee3

issues automation moved this from Reproduced to Closed Feb 22, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 22, 2021
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
issues
  
Closed
Development

No branches or pull requests

3 participants