I can not access mysql

0

How I want to enter the MySQL workbench or open the server from cmd

mysql -u root -p and when I enter the password it tells me

  

ERROR 1045 (28000): Access denied for user 'root' @ 'localhost' (using   password: YES)

    
asked by Pedro Danderfer 08.11.2018 в 20:31
source

1 answer

1

Depending on your version:
MYSQL < 5.7:
The password is blank, you can enter simply with:

mysql -u root

when changing the password:

mysqladmin -u root password [nuevacontraseña]

and with this you can access with any administrator or connection

    
answered by 08.11.2018 в 20:37