In the newly installed Centos7 It's just installed mysql, Ready to go in and have a look, But when we landed, I found that the newspaper was wrong : ERROR 1045 (28000): Access denied for user.
Mac os x install mysql encounter Access denied for user (using password: YES) More related articles on the solution of You can do it first 2 try, If it doesn't, Re execution 1,2 step, Do restart after execution mysql. In the terminal mysql Installation directory bin Under the table of contents 1、 perform mysql -u root -p Initial no password, Go straight back to the next step 2、use mysql Proceed to the next step and execute the following statement :ġ、create user identified by ' Your password ' Ģ、grant all privileges on *.* to PRIVILEGES The solution is as follows : Not given localhost root User authorization, Create a new one localhost root user, And then empower him : Locate. In fact, this mistake is root Unauthorized issues. 5.5 The default password for the version of is empty. Recently moved the development environment to macbook On, Put on mysql After starting, Connect, Always report this mistake.