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 권한 부여
'직장인 건강 꿀팁' 카테고리의 다른 글
(Visual Studio Code) Python Extension Offline 설치하기 (0) | 2021.12.27 |
---|---|
(Python) pywin32 설치하기 (0) | 2021.06.09 |
(bootstrap) 부트스트랩 프로젝트 구성하기 (0) | 2021.05.27 |
(MSSQL, Oracle) ConnectionString 쉽게 작성하기 꿀팁 (0) | 2021.05.17 |
(Visual Studio) log4net 으로 로그시스템 적용하기 (0) | 2021.05.07 |