얕고넓은지식/linux

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) mysql접속이 안된다?!

쪽마 2016. 8. 26. 10:21




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


라는 오류가뜨면서..접속이안된다..


패스워드를 바로 적어주지않아서 뜨는 오류이다





[root@localhost ~]# mysql -pPASSWORD


처럼... -p 다음에 바로붙여서 패스워드를 적어주면된다






[root@localhost bin]# mysql -pPASSWORD

Welcome to the MySQL monitor.  Commands end with ; or \g.

Your MySQL connection id is 7040680

Server version: 5.1.73 Source distribution


Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.


Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.


Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.


mysql>






반응형