๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

Study11

[MySQL] MySQL safe mode ํ•ด์ œ - Error Code : 1175 MySQL safe mode ํ•ด์ œ - Error Code : 1175 ๊ฐœ๋ฐœํ™˜๊ฒฝ macOS Monterey ver 12.5 MySQLWorkbench ver.8.0.25 ์—๋Ÿฌ ๋ฐœ์ƒ ๋Œ€๋žต ์•„๋ž˜ ๊ฐ™์€ ์ฟผ๋ฆฌ์™€ ๊ฐ™์ด, ํ•œ ์กฐ๊ฑด์œผ๋กœ ์—ฌ๋Ÿฌ ๊ฐœ์˜ records๋ฅผ ํ•œ๊บผ๋ฒˆ์— ์—…๋ฐ์ดํŠธํ•˜๋ ค๊ณ  ํ•˜๋‹ˆ ํ•ด๋‹น ์—๋Ÿฌ๋ฅผ ๋งŒ๋‚ฌ๋‹ค. update boards set del = 1 where ref = 1; Error Code : 1175. You are using safe update mode and you tried to update a table without a WHERE that uses a KEY column. To disable safe mode, toggle the option in Preferences -> SQL Editor.. 2022. 7. 29.
[NGINX] NGINX๋ž€? NGINX ์„ค์น˜ Nginx๋ž€? NginX๋ž€? ์›น ์„œ๋ฒ„ ์†Œํ”„ํŠธ์›จ์–ด๋กœ, ๊ฐ€๋ฒผ์›€๊ณผ ๋†’์€ ์„ฑ๋Šฅ์„ ๋ชฉํ‘œ๋กœ ํ•œ๋‹ค. ์›น ์„œ๋ฒ„, ๋ฆฌ๋ฒ„์Šค ํ”„๋ก์‹œ ๋ฐ ๋ฉ”์ผ ํ”„๋ก์‹œ ๊ธฐ๋Šฅ์„ ๊ฐ€์ง„๋‹ค. Nginx๋Š” ์š”์ฒญ์— ์‘๋‹ตํ•˜๊ธฐ ์œ„ํ•ด ๋น„๋™๊ธฐ ์ด๋ฒคํŠธ ๊ธฐ๋ฐ˜ ๊ตฌ์กฐ๋ฅผ ๊ฐ€์ง€๋ฉฐ, ์ด๋Š” ์•„ํŒŒ์น˜ HTTP ์„œ๋ฒ„์˜ ์Šค๋ ˆ๋“œ/ํ”„๋กœ์„ธ์Šค ๊ธฐ๋ฐ˜ ๊ตฌ์กฐ๋ฅผ ๊ฐ€์ง€๋Š” ๊ฒƒ๊ณผ๋Š” ๋Œ€์กฐ์ ์ด๋‹ค. ์ด๋Ÿฌํ•œ ๊ตฌ์กฐ๋Š” ์„œ๋ฒ„์— ๋งŽ์€ ๋ถ€ํ•˜๊ฐ€ ์ƒ๊ธธ ๊ฒฝ์šฐ์˜ ์„ฑ๋Šฅ์„ ์˜ˆ์ธกํ•˜๊ธฐ ์‰ฝ๊ฒŒ ํ•ด์ค€๋‹ค. ์ถœ์ฒ˜: [์œ„ํ‚ค๋ฐฑ๊ณผ] ๊ฐ„๋‹จํ•˜๊ฒŒ ๋งํ•˜๋ฉด ๊ฒฝ๋Ÿ‰ ์›น ์„œ๋ฒ„์ด๋ฉฐ, ํด๋ผ์ด์–ธํŠธ๋กœ๋ถ€ํ„ฐ ์š”์ฒญ์„ ๋ฐ›์•˜์„ ๋•Œ ์š”์ฒญ์— ๋งž๋Š” ์ •์  ํŒŒ์ผ์„ ์‘๋‹ตํ•ด์ฃผ๋Š” HTTP Web Server๋กœ ํ™œ์šฉ๋˜๊ธฐ๋„ ํ•˜๊ณ , Reverse Proxy Server๋กœ ํ™œ์šฉํ•˜์—ฌ WAS ์„œ๋ฒ„์˜ ๋ถ€ํ•˜๋ฅผ ์ค„์ผ ์ˆ˜ ์žˆ๋Š” ๋กœ๋“œ ๋ฐธ๋Ÿฐ์„œ๋กœ ํ™œ์šฉ๋˜๊ธฐ๋„ ํ•œ๋‹ค. ๋ณธ์ธ์€ React๋ฅผ Nginx๋กœ ๋ฐฐํฌํ•˜๊ธฐ์ „ ๊ฐ„๋‹จ.. 2022. 4. 13.
[React] CORS ์˜ค๋ฅ˜ CORS ์˜ค๋ฅ˜ ๊ฐœ๋ฐœํ™˜๊ฒฝ : React + Springboot + Mac React + Springboot ๋กœ ๊ฐœ๋ฐœํ•˜๋ฉด์„œ ๋”ฐ๋กœ ์„ค์ •์„ ํ•˜์ง€ ์•Š๋Š”๋‹ค๋ฉด, ์ดˆ๊ธฐ์— CORS ์˜ค๋ฅ˜๋ฅผ ๋งŒ๋‚  ์ˆ˜ ์žˆ๋‹ค. ์˜ค๋ฅ˜๋ฅผ ๋งŒ๋‚˜๋„ ๋‹นํ™ฉํ•˜์ง€ ๋ง์ž..! Access to XMLHttpRequest at 'http://localhost:8080/v1/login' from origin 'http://localhost:3000' has been blocked by CORS policy: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. ๋‹น.. 2022. 3. 13.
[React] ์ ˆ๋Œ€ ๊ฒฝ๋กœ ์„ค์ •ํ•˜๊ธฐ ๊ฐœ๋ฐœ ํ™˜๊ฒฝ : Mac + VScode + React + js .์ด๋‚˜ ..์„ ์ด์šฉํ•ด ../component/Header์™€ ๊ฐ™์ด ์ƒ๋Œ€ ๊ฒฝ๋กœ๋กœ ์ž‘์„ฑํ•˜๋ฉด, ์ƒ๋Œ€๊ฒฝ๋กœ์ด๊ธฐ ๋•Œ๋ฌธ์— ํ•ด๋‹น ํด๋”๋‚˜ ํŒŒ์ผ ์ด๋™ํ•  ๋•Œ ๊ฒฝ๋กœ๊ฐ€ ๋‹ฌ๋ผ์ ธ import ์˜ค๋ฅ˜๊ฐ€ ๋‚  ์ˆ˜ ์žˆ๋‹ค. ํ˜น์€ ์‚ฌ์šฉํ•  ๋•Œ ํ—ท๊ฐˆ๋ฆด ์ˆ˜๋„ ์žˆ๋‹ค.. ๋”ฐ๋ผ์„œ 'import {Header} from 'component/Header'์™€ ๊ฐ™์ด ์ ˆ๋Œ€๊ฒฝ๋กœ๋ฅผ ์ด์šฉํ•˜๋ฉด ํŽธํ•˜๊ณ , ๊ฒฝ๋กœ ์˜ค๋ฅ˜ ๋ฌธ์ œ๋„ ํ•ด๊ฒฐ ๊ฐ€๋Šฅํ•˜๋‹ค. ํ•ด๊ฒฐ๋ฐฉ๋ฒ• ๊ฒ€์ƒ‰ํ•˜๋‹ˆ env๋ฅผ ์ด์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•๋„ ์žˆ๋Š”๋ฐ ์•„๋ž˜ ๋ฐฉ๋ฒ•์œผ๋กœ ๊ฐ„๋‹จํžˆ ํ•ด๊ฒฐํ•  ์ˆ˜ ์žˆ์–ด์„œ, ์•„๋ž˜ ๋ฐฉ๋ฒ•๋งŒ ๋‹ด์•˜๋‹ค. ์ด ๋ฐฉ๋ฒ•์œผ๋กœ ../.์˜ ์ง€์˜ฅ์„ ํƒˆ์ถœํ–ˆ๋‹ค.. jsconfig.json ํŒŒ์ผ์„ ๋งŒ๋“ค๊ณ , ์•„๋ž˜ ์ฝ”๋“œ๋ฅผ ์‚ฝ์ž…ํ•œ๋‹ค. json ํŒŒ์ผ์˜ ์œ„์น˜๋Š” package.jsonํŒŒ์ผ๊ณผ ๋™์ผํ•œ .. 2022. 3. 2.
[IntelliJ] (Springboot) jsp ๋ณ€๊ฒฝ ํ›„ ์ฆ‰์‹œ ๋ฐ˜์˜ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ• intellij์—์„œ springboot ์›น ๊ฐœ๋ฐœ์„ ํ•˜๋ฉด์„œ jsp ํŒŒ์ผ์„ ์ˆ˜์ •ํ•˜๊ณ  ๋‚˜์„œ ๋ฐ”๋กœ ๋ฐ˜์˜์ด ๋˜์ง€ ์•Š๊ณ , ์ˆ˜์ • ์ „ ํŒŒ์ผ ๋‚ด์šฉ์œผ๋กœ๋งŒ ๊ณ„์† ๋ณด์ด๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ๋‹ค. ์ด๋Ÿฐ ๊ฒฝ์šฐ ๋ฐ˜์˜์ด ๋น ๋ฅด๊ฒŒ ๋˜๊ฒŒ ํ•˜๊ธฐ ์œ„ํ•ด ์—ฌ๋Ÿฌ ๋ถ€๋ถ„์„ ์ˆ˜์ •ํ•ด๋ด์•ผ ํ•œ๋‹ค. *๊ฐœ๋ฐœํ™˜๊ฒฝ : Mac + IntelliJ* 1. IntelliJ ์„ค์ • ์ˆ˜์ •ํ•˜๊ธฐ (1) Run -> Edit configurations... ํด๋ฆญ (2) On frame deactivation : Update classes and resources ๋กœ ๋˜์–ด์žˆ๋Š” ์ง€ ํ™•์ธํ•˜๊ธฐ. 2. IntelliJ ์„ค์ • ์ˆ˜์ •ํ•˜๊ธฐ 2 cmd + option + shift + / ํ‚ค๋ฅผ ๋ˆ„๋ฅธ ํ›„ registry ํด๋ฆญ compiler.automake.allow.parallel ํ•ญ๋ชฉ ์ฒดํฌ ํ™•์ธํ•˜๊ธฐ (ํ•„์ž.. 2022. 2. 4.
[Intellij] Intellij ์™ธ๋ถ€ ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ ์ถ”๊ฐ€ํ•˜๊ธฐ(Mac, Maven) IntelliJ๋ฅผ ์ด์šฉํ•˜๋ฉด์„œ, ์™ธ๋ถ€ jar ํŒŒ์ผ์„ ์ถ”๊ฐ€ํ•ด์•ผ ํ•˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ๋‹ค. ์ด๋ฏธ pom.xml์— ํ•ด๋‹น dependency ๋ถ€๋ถ„์ด ์žˆ์–ด๋„ ์ž˜ ์•ˆ ๋  ๋•Œ ์™ธ๋ถ€ jarํŒŒ์ผ์„ ์ง์ ‘ ์ ์šฉ์‹œํ‚ค๋ฉด ์˜ค๋ฅ˜๊ฐ€ ํ•ด๊ฒฐ๋˜๋Š” ๊ฒฝ์šฐ๋„ ์žˆ๋‹ค. (๊ฒฝํ—˜๋‹ด..) ์–ด์จŒ๋“  ์•„๋ž˜์™€ ๊ฐ™์€ ๋ฐฉ๋ฒ•์œผ๋กœ ๋‚˜๋ฆ„ ๊ฐ„๋‹จํ•˜๊ฒŒ ํ”„๋กœ๊ทธ๋žจ ๋‚ด์—์„œ ์™ธ๋ถ€ jar ํŒŒ์ผ์„ ์‰ฝ๊ฒŒ ์ถ”๊ฐ€ํ•  ์ˆ˜ ์žˆ๋‹ค. *๊ฐœ๋ฐœ ํ™˜๊ฒฝ : Mac + IntelliJ(Maven)* 1. File -> Project Structure ๋กœ ์ด๋™ํ•œ๋‹ค. (๋‹จ์ถ•ํ‚ค : cmd + ;) 2. Modules -> ํ”„๋กœ์ ํŠธ๋ช… -> dependencies -> '+' ๋ฒ„ํŠผ ํด๋ฆญ -> JARs or directories.. 3. ์ถ”๊ฐ€ํ•  ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ(.jar ํŒŒ์ผ ๋“ฑ) ์„ ํƒํ•œ ํ›„ OK๋ฅผ ํด๋ฆญํ•œ๋‹ค. 4. ๋ผ์ด๋ธŒ๋Ÿฌ๋ฆฌ๊ฐ€ ์ถ”๊ฐ€.. 2022. 1. 25.
[Markdown] ๋งˆํฌ๋‹ค์šด ํ…Œ์ด๋ธ” ๋งŒ๋“ค๊ธฐ [Markdown] ๋งˆํฌ๋‹ค์šด ํ…Œ์ด๋ธ” ๋งŒ๋“ค๊ธฐ ๋งˆํฌ๋‹ค์šด์„ ์ด์šฉํ•ด ํ…Œ์ด๋ธ”์„ ๊ทธ๋ฆฌ๋Š” ๋ฐฉ๋ฒ•์ด๋‹ค. ๊ธฐ๋ณธ ํ…Œ์ด๋ธ” |, - ๋ฌธ์ž๋ฅผ ์ด์šฉํ•ด ํ…Œ์ด๋ธ”์„ ์ž‘์„ฑํ•  ์ˆ˜ ์žˆ๋‹ค. | ์ œ๋ชฉ | ๋‚ด์šฉ | ์„ค๋ช… | | ---- | --- | --- | | txt1 | txt2 | txt3 | | txt1 | txt2 | txt3 | | txt1 | txt2 | txt3 | ์ œ๋ชฉ ๋‚ด์šฉ ์„ค๋ช… txt1 txt2 txt3 txt1 txt2 txt3 txt1 txt2 txt3 ์ •๋ ฌํ•˜๊ธฐ :๋ฌธ์ž๋ฅผ ์ด์šฉํ•ด ํ…Œ์ด๋ธ” ๋‚ด๋ถ€ ํ…์ŠคํŠธ๋ฅผ ์ •๋ ฌ์‹œํ‚ฌ ์ˆ˜ ์žˆ๋‹ค. | ์ œ๋ชฉ | ๋‚ด์šฉ | ์„ค๋ช… | | :---- | :---: | ---: | | ์™ผ์ชฝ์ •๋ ฌ | ์ค‘์•™์ •๋ ฌ | ์˜ค๋ฅธ์ชฝ์ •๋ ฌ | | ์™ผ์ชฝ์ •๋ ฌ | ์ค‘์•™์ •๋ ฌ | ์˜ค๋ฅธ์ชฝ์ •๋ ฌ | | ์™ผ์ชฝ์ •๋ ฌ | ์ค‘์•™์ •๋ ฌ | ์˜ค๋ฅธ์ชฝ์ •๋ ฌ | ์ œ๋ชฉ.. 2022. 1. 23.
[Markdown] ๋งˆํฌ๋‹ค์šด ๋ฌธ์„œ ๋‚ด๋ถ€์—์„œ ๋งํฌ ์—ฐ๊ฒฐํ•ด ์ด๋™ํ•˜๋Š” ๋ฐฉ๋ฒ• [Markdown] ๋งˆํฌ๋‹ค์šด ๋ฌธ์„œ ๋‚ด๋ถ€ ๋งํฌ ์ด๋™ ๋ฌธ์„œ ๋‚ด๋ถ€์—์„œ ๋‚ด๋ถ€๋กœ ๋ฐ”๋กœ๊ฐ€๊ธฐ ๋งํฌ๋ฅผ ๊ฑฐ๋Š” ๋ฐฉ๋ฒ•์ด๋‹ค. [๋ณด์—ฌ์ง€๋Š” ํ…์ŠคํŠธ](#์ด๋™ํ• ์œ„์น˜) ~์ƒ๋žต~ # ์ด๋™ํ• ์œ„์น˜ ์œ„์™€ ๊ฐ™์ด ์ž‘์„ฑํ•  ๊ฒฝ์šฐ ๋ณด์—ฌ์ง€๋Š” ํ…์ŠคํŠธ๋ฅผ ํด๋ฆญํ•˜๋ฉด #์ด๋™ํ• ์œ„์น˜๋กœ ์ด๋™ํ•  ์ˆ˜ ์žˆ๋‹ค. ์ฆ‰, #์œผ๋กœ ์‹œ์ž‘ํ•˜๋‹ˆ๊นŒ ํ—ค๋”์ฒ˜๋ฆฌ๋œ ํ…์ŠคํŠธ๋กœ ์ด๋™ํ•  ์ˆ˜ ์žˆ๊ฒŒ๋œ๋‹ค. ์ด๋•Œ, ๊ด„ํ˜ธ ๋ถ€๋ถ„(์ด๋™ํ•  ์œ„์น˜)์„ ์ž‘์„ฑํ•  ๋•Œ ์˜์–ด๋Š” ๋ฐ˜๋“œ์‹œ ์†Œ๋ฌธ์ž๋งŒ ๊ฐ€๋Šฅํ•˜๋ฉฐ ๋„์–ด์“ฐ๊ธฐ๋Š” - ๋กœ ๊ตฌ๋ถ„ํ•ด์•ผํ•œ๋‹ค. ์˜ˆ๋ฅผ ๋“ค์–ด ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๋ฐฉ์‹์œผ๋กœ ์ž‘์„ฑํ•  ์ˆ˜ ์žˆ๋‹ค. [markdown](#markdown-link) # markdown link 2022. 1. 5.
[Java] M1 Oracle Cloud DB + Java ์—ฐ๊ฒฐํ•˜๊ธฐ Mac m1 ์œ ์ €์ž…๋‹ˆ๋‹ค. ๋ณด์‹ค ๋•Œ ์ฐธ๊ณ ํ•ด์ฃผ์„ธ์š”! ๋ฐฐ์šฐ๊ณ  ์žˆ๋Š” ๊ฐ•์˜์—์„œ๋Š” window ๊ธฐ๋ฐ˜์ด๋ผ local๋กœ oracle DB๋ฅผ ์ด์šฉํ•˜๋Š” ๋ฐ, ์ €๋งŒ m1 ์ด๋”๋ผ๊ตฌ์š”.. ๋งค๋ฒˆ ์ฐพ์•„์„œ ํ•˜๊ธฐ ํž˜๋“ค์—ˆ์–ด์„œ ์ œ๊ฐ€ ์•Œ๊ฒŒ ๋œ ์ •๋ณด๋ผ๋„ ๊ธฐ๋กํ•˜๊ณ  ๊ณต์œ ํ•ฉ๋‹ˆ๋‹ค..! > ๊ฐœ๋ฐœ ํ™˜๊ฒฝ Java -> Eclipse , SpringToolSuite4 ์ด์šฉ Oracle Cloud -> ์ž์œจ์šด์˜ ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ์ด์šฉ DBeaver๋กœ DB ๊ด€๋ฆฌ > Java ์„ค์ •ํ•˜๊ธฐ Java์— db connection ํ•  ๋•Œ local๋กœ DB ์—ฐ๊ฒฐ - MySQL public class Constant { public static final String DRIVER = "com.mysql.cj.jdbc.Driver"; public static final String.. 2021. 10. 2.
[๋งˆํฌ๋‹ค์šด] ๋งˆํฌ๋‹ค์šด ๋ฌธ๋ฒ• ๊ฐ„๋‹จ ์ •๋ฆฌ ๋งˆํฌ๋‹ค์šด ํ—ค๋”ฉ(Heading) (#) ๊ฐœ์ˆ˜์— ๋”ฐ๋ผ์„œ ์ œ๋ชฉ์˜ ์ˆ˜์ค€์„ ๊ตฌ๋ณ„ํ•œ๋‹ค. ๋ฌธ์„œ ๊ตฌ์กฐ์˜ ๊ธฐ๋ณธ์ด๋‹ค. # h1 ## h2 ### h3 // ์œ„์™€ ๊ฐ™์ด ์ด์šฉ ๋ฆฌ์ŠคํŠธ ๋ชฉ๋ก์„ ํ‘œ์‹œํ•˜๊ธฐ ์œ„ํ•ด ์‚ฌ์šฉ ( *. -) : ๋ฆฌ์ŠคํŠธ(List) / ์ˆœ์„œ ์—†๋Š” ๋ฆฌ์ŠคํŠธ (1.) : ์ˆœ์„œ๊ฐ€ ์žˆ๋Š” ๋ฆฌ์ŠคํŠธ ์ด๋ ‡๊ฒŒ ์ˆœ์„œ๊ฐ€ ์ƒ๊น€ ์ฝ”๋“œ ๋ธ”๋Ÿญ(Code Block) ํŠน์ • ์–ธ์–ด๋ฅผ ๋ช…์‹œํ•˜๋ฉด Syntax Highlighting์„ ์ง€์›ํ•œ๋‹ค. print("Hello World!") ์ธ๋ผ์ธ ์ฝ”๋“œ ๋ธ”๋Ÿญ print("Hi") ๋งํฌ (link) ๋‹ค๋ฅธ ํŽ˜์ด์ง€๋กœ ์ด๋™ํ•˜๋Š” ๋งํฌ๋ฅผ ์‚ฝ์ž…ํ•œ๋‹ค. ํŒŒ์ผ ๊ฒฝ๋กœ๋ฅผ ๋„ฃ์–ด ๋‹ค์šด๋กœ๋“œ ๊ฐ€๋Šฅํ•œ ๋งํฌ๋กœ ๋งŒ๋“ค ์ˆ˜ ์žˆ๋‹ค. [๋ณด์—ฌ์ง€๋Š” ๋ฌธ์žฅ](๋งํฌ ๊ฒฝ๋กœ)google ์ด๋ฏธ์ง€ ์ด๋ฏธ์ง€ ์‚ฝ์ž… ๋„ˆ๋น„์™€ ๋†’์ด ์กฐ์ ˆ ๋ถˆ๊ฐ€ (HTML ํƒœ๊ทธ ์‚ฌ์šฉํ•˜๋ฉด ๊ฐ€๋Šฅ) !.. 2021. 9. 17.