MySQL Forums
Forum List  »  Italian

Re: Ripristinare permessi ROOT in mysql
Posted by: Sandro D'Antonio
Date: September 22, 2019 06:51AM

Aiuto!!!Ho combinato un pasticcio. Utilizzo MySQL 5.7.11 in MacOs (ElCapitan).
Nel programma di gestione database 'DBeaver' devo aver toccato qualcosa (come LOCK TABLES o non so che) ma non ricordo bene dove e come.Mentre prima entravo in mySql all'apertura del Mac ora ricevo un messaggio di "Access Denied for user 'root'@'localhost'. Account is locked".Devo quindi aprire il terminale e digitare i seguenti comandi da terminale:
sudo /usr/local/mysql/bin/mysqld_safe -- skip-grant-tables
poi entro in mysql con:
...mysql -u root
poi:
UPDATE user SET authentication_string=PASSWORD("root") WHERE User='root'
FLUSH PRIVILEGES
e posso quindi accedere al mio database mySQL.Però questi comandi pare non settino definitivamente l'accesso, mentre io vorrei entrare sempre (ad ogni successiva accensione del Mac ) in mysql come avveniva in precedenza.
Domando: come faccio a ripristinare il rientro 'automatico' in mySql (all'accensione del Mac) e di conseguenza nel mio database senza dover sempre digitare quei comandi a ogni avvio del Mac?
Se qualcuno mi può aiutare ringrazio per l'attenzione

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Ripristinare permessi ROOT in mysql
378
September 22, 2019 06:51AM


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.