LAMP
MySQL ERROR 1045 (28000) Access denied for user
영은파더♥
2017. 3. 3. 09:11
728x90
MySQL ERROR 1045 (28000) Access denied for user
# mysql 만 입력하고 명령을 실행하면 아래와 같은 에러가 발생합니다.
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
이런 경우엔 유저아이디와 패스워드 옵션(-p)을 함께 입력후 실행하면 됩니다.
[root@vps conf]# mysql -utester -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 242979
Server version: 5.1.73-log 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>
-p비밀번호 이렇게 입력하여도 됩니다.
728x90
반응형