-
Notifications
You must be signed in to change notification settings - Fork 169
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
查看不了 #13
Comments
数据库有连接成功吗,建表语句写了吗 |
连接成功了,语句也写了。如果没连接成功,没有表的话就连登录都登录不了了。然后我换了MySQL8,然后现在连登录都登不进去了
…------------------ 原始邮件 ------------------
发件人: "Soarkey/StudentManagement" <[email protected]>;
发送时间: 2020年12月13日(星期天) 凌晨0:06
收件人: "Soarkey/StudentManagement"<[email protected]>;
抄送: "moon"<[email protected]>;"Author"<[email protected]>;
主题: Re: [Soarkey/StudentManagement] 查看不了 (#13)
数据库有连接成功吗,建表语句写了吗
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
查看不了可能是得在网页上运行才能查看,我一开始用Myeclipse运行的 也是查看不了 然后用MySQL8的话整个导入的包都得改 以及连接的语句得改成这样就行了 String dbURL = "jdbc:mysql://localhost:3306/studentinfomanagement?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF8"; Class.forName("com.mysql.cj.jdbc.Driver"); |
您说的方法我都试过了,但是都没用。然后我又下载了mysql5.6。但是执行sql脚本的时候就会这样
一开始也是这样,但是数据库还是创建了。我打开错误文件之后是这样的
说这个数据库已经存在了。但是我是新安装的不可能有吧。然后我刷新了一下,数据库是创建好了,但是里面没有数据
我又把sql脚本里面的”创建数据库的语句“和”建表的语句“删了,想着能不能执行插入语句,但是只有数字可以插入,中文是‘?’。
然后就是又回到了开始的问题,可以登录了但是不能查看用户和插入。
最后我有个请求,就是我能加您的联系方式吗?因为这样子联系比较方便。
…------------------ 原始邮件 ------------------
发件人: "Soarkey/StudentManagement" <[email protected]>;
发送时间: 2020年12月15日(星期二) 下午5:45
收件人: "Soarkey/StudentManagement"<[email protected]>;
抄送: "moon"<[email protected]>;"Author"<[email protected]>;
主题: Re: [Soarkey/StudentManagement] 查看不了 (#13)
查看不了可能是得在网页上运行才能查看,我一开始用Myeclipse运行的 也是查看不了
然后用MySQL8的话整个导入的包都得改
import java.sql.Connection;
以及连接的语句得改成这样就行了
String dbURL = "jdbc:mysql://localhost:3306/studentinfomanagement?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF8";
Class.forName("com.mysql.cj.jdbc.Driver");
因为8的版本和之前有很大不同
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
中文乱码解决了,创建数据库语句改成这样就行了
create database StudentInfoManagement charset=utf8
…------------------ 原始邮件 ------------------
发件人: "Soarkey/StudentManagement" <[email protected]>;
发送时间: 2020年12月15日(星期二) 下午5:45
收件人: "Soarkey/StudentManagement"<[email protected]>;
抄送: "moon"<[email protected]>;"Author"<[email protected]>;
主题: Re: [Soarkey/StudentManagement] 查看不了 (#13)
查看不了可能是得在网页上运行才能查看,我一开始用Myeclipse运行的 也是查看不了
然后用MySQL8的话整个导入的包都得改
import java.sql.Connection;
以及连接的语句得改成这样就行了
String dbURL = "jdbc:mysql://localhost:3306/studentinfomanagement?useSSL=false&serverTimezone=UTC&allowPublicKeyRetrieval=true&useUnicode=true&characterEncoding=UTF8";
Class.forName("com.mysql.cj.jdbc.Driver");
因为8的版本和之前有很大不同
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
我也是这样,点击查看所有用户不显示数据,想问下楼主和层主问题出在哪里,怎么解决的?可以留个联系方式咨询下么,谢谢。 |
我也是这个问题,想问下是如何解决的呢?乱码已经解决了,但是点击查看学生信息这些没有东西输出 |
不管是用户登录还是管理员登录,点击查看所有用户都没有反应。请问一下是怎么回事???
The text was updated successfully, but these errors were encountered: