摘要:
方式一 Driver driver = new com.mysql.jdbc.Driver(); String url = "jdbc:mysql://localhost:3306/test"; Properties info = new Properties(); info.setProperty 阅读全文
posted @ 2020-02-27 16:35
超级学渣渣
阅读(188)
评论(0)
推荐(0)
摘要:
我们把win系统的压缩文件解压到Linux系统下时,经常会出现乱码.这是因为win系统默认字符集为gbk.而不是linux的utf8. 我们在使用unzip解压的时候可以指定字符集. unzip -O gbk **.zip 阅读全文
posted @ 2020-02-27 16:10
超级学渣渣
阅读(2165)
评论(0)
推荐(0)
摘要:
Ubuntu系统使用apt安装的mysql在安装过程中没有给出输入密码的选项,而是给了一个默认的用户名和密码,那只能根据默认用户名和密码登录mysql后修改用户名和密码了. 查看默认用户名和密码 //打开文件 /etc/mysql/debian.cnf查看默认用户名和密码 [client] host 阅读全文
posted @ 2020-02-27 13:07
超级学渣渣
阅读(1909)
评论(0)
推荐(0)