MySQL에서 새로운 사용자로 DB 선택이 안됩니다 정보
MySQL에서 새로운 사용자로 DB 선택이 안됩니다본문
오류가 나는곳의 주소를 알려주시면 더 빠르고 정확하게 답변 받을 수 있습니다.
오류 주소 :
아래처럼 해서 test_user라는 새로운 계정을 생성하고,
mysql> grant all privileges on my_database. * to test_user@localhost identified by '1234' with grant option;
도스창에서 아래처럼 치면
mysql -u test_user -p my_database
ERROR 1044 <42000> : Access denied for user 'test_user'@'localhost' to database 'my_database'
라는 메시지가 뜹니다. ㅠ..ㅠ
오류 주소 :
아래처럼 해서 test_user라는 새로운 계정을 생성하고,
mysql> grant all privileges on my_database. * to test_user@localhost identified by '1234' with grant option;
도스창에서 아래처럼 치면
mysql -u test_user -p my_database
ERROR 1044 <42000> : Access denied for user 'test_user'@'localhost' to database 'my_database'
라는 메시지가 뜹니다. ㅠ..ㅠ
댓글 전체
grant all privileges on my_database. * to test_user@localhost identified by '1234' with grant option;
이소스는 잘못된다고 나오네요 그래서 안되던거에요 소스를 다시 찾아보세요
이소스는 잘못된다고 나오네요 그래서 안되던거에요 소스를 다시 찾아보세요
일단 사용자 자체가 안만들어져있고 만든후에는 적용을 시켜줘야 합니다.
flush privileges;
http://www.mysqlkorea.co.kr/sub.html?mcode=manual&scode=01&m_no=21705&cat1=&cat2=&cat3=&lang=k&ver_name=5
flush privileges;
http://www.mysqlkorea.co.kr/sub.html?mcode=manual&scode=01&m_no=21705&cat1=&cat2=&cat3=&lang=k&ver_name=5
새로운 계정을 만들었고 로그인은 성공했는데, 데이터베이스 선택이 안되네요.