MySQL Forums
Forum List  »  Portuguese

Recuperando acesso super user
Posted by: Ricardo Lino Gonzalez Ricardo
Date: February 21, 2017 05:11AM

Olá,
ontem vendo algumas dicas de segurança para MySQL, executei o comando:
rename user 'root'@'localhost' to 'newrootuser'@'localhost';

O problema que não executei o comando FLUSH PRIVILEGES; com isso agora não consigo logar novamente como root e nem como newrootuser, o resultado ao tentar logar é o seguinte:

# mysql -u newrootuser -p'password'
ERROR 1698 (28000): Access denied for user 'newrootuser'@'localhost'
#

Será que vou ter que reinstalar o mysql?
Já tentei comando como:
# /etc/init.d/mysql stop
# mysqld_safe --skip-grant-tables --skip-networking &

Porém não consegui recuperar o acesso root, como esperado.

Possuo acesso através de outros usuários porém não são super user.


Abaixo segue a versão do MySQL
+----------------------------------+
| VERSION() |
+----------------------------------+
| 10.0.29-MariaDB-0ubuntu0.16.04.1 |
+----------------------------------+

Obrigado.

Options: ReplyQuote


Subject
Views
Written By
Posted
Recuperando acesso super user
937
February 21, 2017 05:11AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.