[MySQL ์˜ค๋ฅ˜] Cannot load driver class: com.mysql.cj.jdbc.Driver

jieuneeยท2022๋…„ 7์›” 25์ผ
0

๐Ÿ†˜ ๋ฌธ์ œ์ 

IntelliJ ๋‚ด์—์„œ ํ”„๋กœ์ ํŠธ๋ฅผ ์‹คํ–‰ํ•˜๋ ค๋Š” ๋ฐ ๊ฐ‘์ž๊ธฐ ์•„๋ž˜์™€ ๊ฐ™์€ ์—๋Ÿฌ๊ฐ€ ๋–ด๋‹ค.

์‹ฌ์ง€์–ด MySQLWorkbench๋ฅผ ์‹คํ–‰ํ•˜๋‹ˆ ์•„๋ž˜์™€ ๊ฐ™์€ ์—๋Ÿฌ์ฐฝ์ด ๋–ด๋‹ค.

ํ•ด๋‹น ์—๋Ÿฌ ๋•Œ๋ฌธ์— ํ”„๋กœ์ ํŠธ๊ฐ€ ์‹คํ–‰์กฐ์ฐจ ๋˜์ง€ ์•Š์•„์„œ ๋งค์šฐ ๊ณค๋ž€ํ•œ ์ƒํ™ฉ์— ์ฒ˜ํ–ˆ๋‹ค.

๊ทธ๋ž˜์„œ ์˜ค๋žœ ์‹œ๊ฐ„ ๋™์•ˆ ๊ตฌ๊ธ€๋ง์„ ํ•ด๋ณธ ๊ฒฐ๊ณผ, ํ˜„์žฌ ๋‚˜์˜ MySQL ๋ฒ„์ „๊ณผ ๋งฅ ์ตœ์‹  OS์™€์˜ ์ถฉ๋Œ๋กœ ์ธํ•ด ๋ฐœ์ƒํ•˜๋Š” ๋ฌธ์ œ์ธ ๊ฒƒ ๊ฐ™์•˜๋‹ค.
์ƒ๊ฐํ•ด ๋ณด๋‹ˆ ์ตœ๊ทผ์— ๋งฅ OS๋ฅผ ์ตœ์‹  ๋ฒ„์ „์œผ๋กœ ์—…๊ทธ๋ ˆ์ด๋“œ๋ฅผ ํ–ˆ๋˜ ๊ธฐ์–ต์ด ๋‚ฌ๋‹ค.


๐Ÿ’— ํ•ด๊ฒฐ ๋ฐฉ์•ˆ
ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•์€ MySQL ๋ฒ„์ „์„ ๋‹ค์šด๊ทธ๋ ˆ์ด๋“œ๋ฅผ ํ•˜๋Š” ๊ฒƒ์ด๋ผ๊ณ  ํ•œ๋‹ค.
ํ•˜์ง€๋งŒ, ๋‹ค์šด๊ทธ๋ ˆ์ด๋“œ๋ฅผ ํ•ด๋„ ๊ฐ™์€ ์—๋Ÿฌ๋Š” ๊ณ„์†ํ•ด์„œ ๋ฐ˜๋ณต๋˜์—ˆ๋‹ค.

๊ฒฐ๊ตญ IntelliJ ๋‚ด์—์„œ build.gradle์— ์•„๋ž˜์™€ ๊ฐ™์ด ํ˜„์žฌ ๋‚˜์˜ MySQL ๋ฒ„์ „์— ๋งž๋Š” ์˜์กด์„ฑ์„ ์ฃผ์ž…์‹œ์ผœ์ฃผ์—ˆ๋”๋‹ˆ ํ•ด๊ฒฐ๋˜์—ˆ๋‹ค.

profile
Back-End Developer ๐ŸŒฑ

0๊ฐœ์˜ ๋Œ“๊ธ€