728x90

db 3

'mysql80 서비스가 로컬 컴퓨터에서 시작했다가 중지되었습니다.' 오류 해결

일단, Mysql --initialize-insecure 을 쓰고 Net Start Mysql 을 입력해보자 하지만 해결이 안될 경우, 컴퓨터를 '강제 종료'하면 이런 일이 일어난다는 공통점을 찾게 되었다. 그래서 1. [작업 관리자] 에서 Mysqld 데몬 프로세스를 중단시키고, 2. [서비스]에서 Mysql 우클릭 - [속성] 에서 시작 버튼을 눌러주면 정상적으로 실행되는 것을 볼 수 있다. 결론 : 실행 중인 프로세스가 제대로 닫히지 않아서 Mysql이 시작되지 않는 경우가 있다. 출처 : https://kumsil1006.tistory.com/11 [MySQL] 'mysql80 서비스가 로컬 컴퓨터에서 시작했다가 중지되었습니다. ' Mysql을 사용해서 개발을 하다가 이런 오류를 만나면 진짜 진짜..

카테고리 없음 2023.01.14

(MS-SQL 복합키) primary key가 2개일 때

MS-SQL에서 기본키 2개인 복합키를 생성하는 방법 table 생성 CREATE TABLE test_table( id numeric(10,0), sub_id numeric(10,0), content varchar(100), PRIMARY KEY(id, sub_id) ) data insert insert into test_table( id, sub_id, content ) values( 1, 1, 'test' ) Table을 생성했으면 위의 쿼리로 데이터를 두번넣으면 기본키가 중복되어 오류가 나는 것을 확인 할 수 있습니다. (같은 PK의 데이터가 2번 들어갔기 때문..!) 추가로 alter 명령어로 기본키를 추가 하는 방법은 아래와 같습니다. ALTER TABLE TEST_TABLE ADD CONSTR..

Database 2022.11.02

Communications link failure 에러(MySQL)

[08S01] Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server. javax.net.ssl.SSLHandshakeException: No appropriate protocol (protocol is disabled or cipher suites are inappropriate) 하단에 있는 Test Connection 을 눌러주는데 에러(Communications link failure)가 발생하였다. 상단에 있는 Driver가 MySQL로 되어있는데, 이걸 Amazon Auor..

Database 2022.03.15
728x90