The problem occurred after you installed window7:
1 | ERROR 2005 (HY000): Unknown MySQL server host 'localhost' (0) |
I was able to solve this problem by modifying my list of hostnames:
1 | C:\Windows\System32\drivers\etc\hosts |
Make sure that you have the following entry:
1 | 127.0.0.1 localhost |
This ensures that the host “localhost” resolves to the IP address 127.0.0.1.
'Course > MY-SQL' 카테고리의 다른 글
MSSQL에서 MySQL 스토어드 프로시저(Stored PROCEDURE) 변경방법 (0) | 2015.04.30 |
---|---|
MySQL row_number 구현 (0) | 2015.04.28 |
[mysql] 쿼리값이 NULL 일때 0으로 바꾸기 (0) | 2014.09.01 |
[MYSQL] 조인, JOIN (INNER JOIN, OUTER JOIN) (0) | 2014.09.01 |
문자열or텍스트 와 필드 값을 합치는 방법 (0) | 2014.04.25 |