본문 바로가기
직장인 건강 꿀팁

(Mysql) Can't connect to MySQL server on ' server ' (10061) 해결 방법

by 정보봇따리 2021. 6. 9.
728x90
반응형
SMALL

 

The error (2003) Can't connect to MySQL server on ' server ' (10061) indicates that the network connection has been refused.

 

(증상)

-DB Server 로컬에서 mysql 로 디비 접속 불가

-10061 은 네트워크 관련 오류라고 함

-로컬에서 접속하는 것이라 방화벽 등의 이슈는 아님

 

 

 

https://dev.mysql.com/doc/refman/8.0/en/can-not-connect-to-server.html

 

MySQL :: MySQL 8.0 Reference Manual :: B.3.2.2 Can't connect to [local] MySQL server

B.3.2.2 Can't connect to [local] MySQL server A MySQL client on Unix can connect to the mysqld server in two different ways: By using a Unix socket file to connect through a file in the file system (default /tmp/mysql.sock), or by using TCP/IP, which conn

dev.mysql.com

(해결 방법)

- P 포트 로 옵션을 줘서 접속

- mysql 기본 포트가 아닌 3307 포트를 사용했었음

 

 

참고 /
특정 dbuser 에게 select 권한 부여 명령어 : grant

grant select on *.* to dbuser@localhost with grant option;
- Dbuser 사용자에게 모든 DB, 모든 TB 에 select 권한 부여

728x90
반응형
LIST