¿Cómo puedo agregar otro usuario root a MySQL en Debian Stretch?

¿Cómo puedo agregar otro usuario root a MySQL en Debian Stretch?

Seguí estos comandos desde el desbordamiento de pila, pero el nuevo usuario no puede crear un nuevo usuario, una base de datos ni otorgar permisos.

CREATE USER 'monty'@'localhost' IDENTIFIED BY 'some_pass';
GRANT ALL PRIVILEGES ON *.* TO 'monty'@'localhost' WITH GRANT OPTION;
CREATE USER 'monty'@'%' IDENTIFIED BY 'some_pass';
GRANT ALL PRIVILEGES ON *.* TO 'monty'@'%' WITH GRANT OPTION;
CREATE USER 'admin'@'localhost';
GRANT RELOAD,PROCESS ON *.* TO 'admin'@'localhost';
CREATE USER 'dummy'@'localhost';
FLUSH PRIVILEGES;

Gracias por la ayuda

Respuesta1

Intentar

GRANT SUPER ON *.* to user@localhost

Alternativamente, puede conectarse a la base de datos mysql y ejecutar los siguientes comandos:

UPDATE mysql.user SET Super_Priv='Y' WHERE user='user1' AND host='%';
FLUSH PRIVILEGES

El problema que tiene es que está trabajando a nivel de base de datos, necesita configurar un acceso global. Tener una lectura deesteenlace.

información relacionada