Error
#1698 Access denied for user 'root'@'localhost'
mysqli_real_connect(): (HY000/1698): Access denied for user 'root'@'localhost'
Solución
sudo mysql -p -u root
CREATE USER 'newuser'@'%' IDENTIFIED BY 'you_password_here';
RESULTADO: Query OK, 0 rows affected (0.00 sec)
GRANT ALL PRIVILEGES ON *.* TO 'newuser'@'%' WITH GRANT OPTION;
RESULTADO: Query OK, 0 rows affected (0.01 sec)
No hay comentarios.:
Publicar un comentario