mysql에서 패스워드없이 그냥 접속됩니다..

helloneo의 이미지

mysql을 힘들게깔고..
mysqladmin -u root password ....
루트 패스워드 지정도 했습니다..

그리구나서 그냥
mysql 만 치면 아무나 접속이 되네요..
이게 원래 정상인가요..?
mysql사용자는 아무도 추가 안했습니다..

$ mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7 to server version: 4.0.16-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

지리즈의 이미지

mysqladmin -u root -p reload

한번 해보세요.

apnetwork wrote:
mysql을 힘들게깔고..
mysqladmin -u root password ....
루트 패스워드 지정도 했습니다..

그리구나서 그냥
mysql 만 치면 아무나 접속이 되네요..
이게 원래 정상인가요..?
mysql사용자는 아무도 추가 안했습니다..

$ mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7 to server version: 4.0.16-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

There is no spoon. Neo from the Matrix 1999.

helloneo의 이미지

$ mysql -u fnoewkjarrt
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 12 to server version: 4.0.16-log

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

없는사용자를 넣어도 저렇게 나오는데요..?

WHAT'S UP

지리즈의 이미지

그렇다면... use mysql 해보세요...
아무레도...
mysql 데이터베이스의 user테이블에...

%(anonymous)가 등록되어 있어서일 겁니다.
접속은 되더라도... use 데이터베이스 해서
데이터베이스에 접근할 수는 없을 겁니다.

There is no spoon. Neo from the Matrix 1999.

helloneo의 이미지

답변감사..

WHAT'S UP