pmm-admin cannot create user for MySQL 8

Description

  1. install MySQL 8 with default option following instruction for Centos 7

  2. Install last PMM build (201806140933) and client

  3. Execute :

    Result:

As I understand the problem in " IDENTIFIED BY PASSWORD syntax has been removed " from MySQL 8 regarding this https://dev.mysql.com/doc/refman/8.0/en/mysql-nutshell.html

How to test

None

How to document

None

Smart Checklist

Activity

Nailya Kutlubaeva June 22, 2018 at 7:16 PM

thank you ! everything works!

Kamil Dziedzic June 22, 2018 at 12:06 PM

So I reworked it. Could you recheck?

Roma Novikov June 21, 2018 at 7:22 PM

this should fail on 5.5  as well.  MAX_USER_CONNECTIONS introduced in Create user in 5.7 only   

Kamil Dziedzic June 21, 2018 at 7:20 PM

Turns out CREATE USER supports MAX_USER_CONNECTIONS since 5.7 ;(
This means I can't write one query to support all MySQL versions, I need to specifically query database and check for version, and depending on version execute specific queries - I will redo this tomorrow;/

Nailya Kutlubaeva June 21, 2018 at 6:53 PM
Edited

Works great for MySQL 8, but doesn't work for MySQL 5.6

Server version: 5.6.33-0ubuntu0.14.04.1-log (Ubuntu)

I checked twice (removed and the install pmm-client again)

For PS 5.7 works OK

Done

Details

Assignee

Reporter

Priority

Components

Labels

Fix versions

Smart Checklist

Created June 15, 2018 at 6:55 PM
Updated July 11, 2018 at 5:25 PM
Resolved June 27, 2018 at 6:06 PM