+++ .idea/.gitignore
... | ... | @@ -0,0 +1,8 @@ |
1 | +# Default ignored files | |
2 | +/shelf/ | |
3 | +/workspace.xml | |
4 | +# Datasource local storage ignored files | |
5 | +/dataSources/ | |
6 | +/dataSources.local.xml | |
7 | +# Editor-based HTTP Client requests | |
8 | +/httpRequests/ |
+++ .idea/inspectionProfiles/Project_Default.xml
... | ... | @@ -0,0 +1,7 @@ |
1 | +<component name="InspectionProjectProfileManager"> | |
2 | + <profile version="1.0"> | |
3 | + <option name="myName" value="Project Default" /> | |
4 | + <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" /> | |
5 | + <inspection_tool class="TsLint" enabled="true" level="WARNING" enabled_by_default="true" /> | |
6 | + </profile> | |
7 | +</component>(No newline at end of file) |
+++ .idea/modules.xml
... | ... | @@ -0,0 +1,8 @@ |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<project version="4"> | |
3 | + <component name="ProjectModuleManager"> | |
4 | + <modules> | |
5 | + <module fileurl="file://$PROJECT_DIR$/.idea/workspace.iml" filepath="$PROJECT_DIR$/.idea/workspace.iml" /> | |
6 | + </modules> | |
7 | + </component> | |
8 | +</project>(No newline at end of file) |
+++ .idea/runConfigurations.xml
... | ... | @@ -0,0 +1,10 @@ |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<project version="4"> | |
3 | + <component name="RunConfigurationProducerService"> | |
4 | + <option name="ignoredProducers"> | |
5 | + <set> | |
6 | + <option value="com.android.tools.idea.compose.preview.runconfiguration.ComposePreviewRunConfigurationProducer" /> | |
7 | + </set> | |
8 | + </option> | |
9 | + </component> | |
10 | +</project>(No newline at end of file) |
+++ .idea/vcs.xml
... | ... | @@ -0,0 +1,6 @@ |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<project version="4"> | |
3 | + <component name="VcsDirectoryMappings"> | |
4 | + <mapping directory="" vcs="Git" /> | |
5 | + </component> | |
6 | +</project>(No newline at end of file) |
+++ .idea/workspace.iml
... | ... | @@ -0,0 +1,9 @@ |
1 | +<?xml version="1.0" encoding="UTF-8"?> | |
2 | +<module type="JAVA_MODULE" version="4"> | |
3 | + <component name="NewModuleRootManager" inherit-compiler-output="true"> | |
4 | + <exclude-output /> | |
5 | + <content url="file://$MODULE_DIR$" /> | |
6 | + <orderEntry type="inheritedJdk" /> | |
7 | + <orderEntry type="sourceFolder" forTests="false" /> | |
8 | + </component> | |
9 | +</module>(No newline at end of file) |
--- 202108/.classpath
+++ 202108/.classpath
... | ... | @@ -9,6 +9,10 @@ |
9 | 9 |
</classpathentry> |
10 | 10 |
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/> |
11 | 11 |
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/> |
12 |
- <classpathentry exported="true" kind="lib" path="C:/project/mariadb-java-client-2.7.3.jar"/> |
|
12 |
+ <classpathentry kind="lib" path="C:/project/mysql-connector-java-8.0.26/mysql-connector-java-8.0.26.jar"> |
|
13 |
+ <attributes> |
|
14 |
+ <attribute name="org.eclipse.jst.component.dependency" value="/WEB-INF/lib"/> |
|
15 |
+ </attributes> |
|
16 |
+ </classpathentry> |
|
13 | 17 |
<classpathentry kind="output" path="build/classes"/> |
14 | 18 |
</classpath> |
--- 202108/src/main/java/study/DB.java
+++ 202108/src/main/java/study/DB.java
... | ... | @@ -13,14 +13,14 @@ |
13 | 13 |
ResultSet ps = null; |
14 | 14 |
|
15 | 15 |
// 데이터베이스 연결관련 정보를 문자열로 선언 |
16 |
- String driver = "org.mariadb.jdbc.Driver"; |
|
17 |
- String url = "jdbc:mariadb://localhost:3306/mydb"; |
|
16 |
+ String driver = "com.mysql.jdbc.Driver"; |
|
17 |
+ String url = "jdbc:mysql://db.asin21.com:3306/db_demo07"; |
|
18 | 18 |
|
19 | 19 |
|
20 | 20 |
public void conn() { |
21 | 21 |
try { |
22 | 22 |
Class.forName(driver); |
23 |
- conn = DriverManager.getConnection(url, "root", "1234"); |
|
23 |
+ conn = DriverManager.getConnection(url, "demo07", "demo07!"); |
|
24 | 24 |
System.out.println("Database Connect Success!!"); |
25 | 25 |
} catch (Exception e) { |
26 | 26 |
e.printStackTrace(); |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?