使用Eclipse的JDBC連接Mysql數據庫

因爲好久沒有弄數據庫和代碼,今天心血來潮,弄個簡單的連接恢復一下記憶。 環境:MySQL任意版本;eclipse任意版本;JDBC驅動jar包; 1.MySQL安裝完畢後,創建數據庫,創建表; Enter password:*******  //出現welcome to the mysql monitor; mysql>create database testDB; //創建數據庫 mysql>u
相關文章
相關標籤/搜索