일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- Node.js 설치
- SpringSecurity 로그인
- StringBuilder
- JSP 실습
- 스프링부트 로그인
- SQL import
- @PreAuthorize("isAuthenticated()")
- 이클립스 설치
- 중첩 if
- D2Coding
- 중첩for
- SQL dump
- jdk 설정
- SpringSecurity 로그아웃
- if else if
- 스프링시큐리티 로그아웃
- SpringBoot
- 접근제어자
- Scanner 시간구하기
- 증감 연산자
- Springsecurity
- if else
- 별찍기
- System클래스
- JAVA 변수
- 클래스 형변환
- 인텔리제이 Web 애플리케이션
- MySQL workbench dump
- StringBuffer
- 회원정보 수정
Archives
- Today
- Total
gi_dor
MySQL dump 파일 Import 본문
팀프로젝트 이후 sql 파일 받아서 로컬에 Import
1. root 계정으로 접속
2. Administration 탭에서 Users and Privileges로 들어가기
3. Add Acount를 클릭
4. 원하는 계정명과 비밀번호를 입력하고 Apply를 누르면 생성됩니다.
5. Administrative Roles 에서 권한주기
6. Schema Privileges에서 Add Entry로 특정 스키마를 사용하고 싶을 때
7. 연결하기
8. server - Data Import
9. Import
10. 에러 1 ❗
14:15:17 Restoring syusyu (brand)
Running: mysql.exe --defaults-file="C:\Users\Han\AppData\Local\Temp\tmp6dc4rv3c.cnf" --protocol=tcp --host=127.0.0.1 --user=syusyu --port=3306 --default-character-set=utf8 --comments --database=syusyu < "C:\\Users\\Han\\Desktop\\syusyu_20230829.sql"
ERROR 1049 (42000): Unknown database 'syusyu'
Operation failed with exitcode 1
14:15:17 Import of C:\Users\Han\Desktop has finished with 1 errors
ERROR 1049 (42000): Unknown database 'syusyu'
오류는 MySQL 서버에서 syusyu라는 데이터베이스를 찾을 수 없다고 함
CREATE DATABASE syusyu;
11. 에러 2 ❗
14:18:19 Restoring syusyu (brand)
Running: mysql.exe --defaults-file="C:\Users\Han\AppData\Local\Temp\tmphkfx_61m.cnf" --protocol=tcp --host=127.0.0.1 --user=syusyu --port=3306 --default-character-set=utf8 --comments --database=syusyu < "C:\\Users\\Han\\Desktop\\syusyu_20230829.sql"
ERROR 1142 (42000) at line 25: REFERENCES command denied to user 'syusyu'@'localhost' for table 'syusyu.member'
Operation failed with exitcode 1
14:18:19 Import of C:\Users\Han\Desktop has finished with 1 errors
ERROR 1142 (42000) at line 25: REFERENCES command denied to user 'syusyu'@'localhost' for table 'syusyu.member'
오류는 MySQL 사용자 syusyu 가 권한이 없다고함
전체 권한 부여하기
GRANT ALL PRIVILEGES ON syusyu.* TO 'syusyu'@'%';
FLUSH PRIVILEGES;
13. Import 다시
14:18:19 Restoring syusyu (brand)
Running: mysql.exe --defaults-file="C:\Users\Han\AppData\Local\Temp\tmphkfx_61m.cnf" --protocol=tcp --host=127.0.0.1 --user=syusyu --port=3306 --default-character-set=utf8 --comments --database=syusyu < "C:\\Users\\Han\\Desktop\\syusyu_20230829.sql"
ERROR 1142 (42000) at line 25: REFERENCES command denied to user 'syusyu'@'localhost' for table 'syusyu.member'
Operation failed with exitcode 1
14:18:19 Import of C:\Users\Han\Desktop has finished with 1 errors
14:20:00 Restoring syusyu (brand)
Running: mysql.exe --defaults-file="C:\Users\Han\AppData\Local\Temp\tmpc_ldrfi2.cnf" --protocol=tcp --host=127.0.0.1 --user=syusyu --port=3306 --default-character-set=utf8 --comments --database=syusyu < "C:\\Users\\Han\\Desktop\\syusyu_20230829.sql"
14:20:02 Import of C:\Users\Han\Desktop has finished
오류 해결후 , 권한 부여 Import 완성
728x90
'Tool' 카테고리의 다른 글
인텔리제이 JDBC 라이브러리 추가 방법 (0) | 2023.12.28 |
---|---|
Oracle 설치 및 세팅 (0) | 2023.12.04 |
Node.js 설치 및 적용 (0) | 2023.10.23 |
이클립스 JDK 설치 , 글꼴 설정 (0) | 2023.10.23 |
Oracle SQL Developer - DB Export 하기 (0) | 2023.09.04 |