• 카테고리

    질문 & 답변
  • 세부 분야

    백엔드

  • 해결 여부

    미해결

16강 13:28 mysql 에서 com 연결이 안됩니다

22.11.23 20:37 작성 조회수 318

0

제목 없음.pngdd.png

하도 연결이 안되서 직접 root계정으로 들어가서

아이디 com

비밀번호 com01로 계정 생성했는데도 안되네요 이거 무슨 문제인지 도저히 모르겠습니다

 

그리고 분명 설치햇는데 작업관리자에서도 서비스에 mysql이 안뜨네요

 

답변 3

·

답변을 작성해보세요.

0

이태건님의 프로필

이태건

질문자

2022.12.01

연결 되었습니다 감사합니다

네 천천히 잘 따라해보세요~~

0

이태건님의 프로필

이태건

질문자

2022.11.23

mysql.png이렇게 뜨고 mysqld 자체가 실행이 안됩니다

C:\eGovFrame-4.0.0\bin\mysql-5.7.32\bin>mysqld

mysqld: Could not create or access the registry key needed for the MySQL application

to log to the Windows EventLog. Run the application with sufficient

privileges once to create the key, add the key manually, or turn off

logging for that application.

-> 위에서 처럼하면 당연히 에러가 납니다. 아래처럼 해보세요?

C:\eGovFrame-4.0.0\bin\mysql-5.7.32\bin>mysql -u com -p

Enter password: *****

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 21

Server version: 5.7.32-log MySQL Community Server (GPL)

Copyright (c) 2000, 2020, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>

0

1.먼저 startup.bat 파일을 실행하면 mysql서버가 구동이 됩니다.
(기존에 다른 mysql서버가 구동 되어 있다면 중지 시키시구요)
C:\eGovFrame-3.10.0\bin\mysql-5.6.21>cd bin
C:\eGovFrame-3.10.0\bin\mysql-5.6.21\bin>mysqld.exe --console

-- 생략 --

2022-11-23 20:52:33 12556 [Note] mysqld.exe: ready for connections.
Version: '5.6.21-log' socket: '' port: 3306 MySQL Community Server (GPL)

2. 서버가 구동이 되면 아이디 : com, 비밀번호 : com01 로 접속을 하면 접속이 됩니다.
(com계정은 미리 만들어 져있구요)


C:\Users\GSM>cd C:\eGovFrame-3.10.0\bin\mysql-5.6.21\bin

C:\eGovFrame-3.10.0\bin\mysql-5.6.21\bin>mysql -u com -p

Enter password: *****(com01)

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 1

Server version: 5.6.21-log MySQL Community Server (GPL)

Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its

affiliates. Other names may be trademarks of their respective

owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>