数据库显示
来源:10-2 项目打包发布与域名解析

慕瓜9421094
2020-03-07
老师,我数据库上传到服务器了,但是页面数据都显示不出来,我jdbc.properties配置检查了没问题。请问老师还有哪有可能出现问题啊?
2回答
-
慕瓜9421094
提问者
2020-03-07
老师我解决了,打扰您了,百度了个偏方法说即使是root权限还是不够,增加被访问的权限并刷新一下就行了,希望有同学有我一样的问题时能看到我的回答吧 ~谢谢老师,您的项目很精彩。
112020-03-09 -
慕瓜9421094
提问者
2020-03-07
老师我查看了谷歌,它报这样的问题:
{"success":false,"errMsg":"nested exception is org.apache.ibatis.exceptions.PersistenceException: \n### Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!\n### The error may exist in file [/root/apache-tomcat-8.5.51/webapps/o2o/WEB-INF/classes/mapper/ShopCategoryDao.xml]\n### The error may involve io.guthub.blai404.o2o.dao.ShopCategoryDao.queryShopCategory\n### The error occurred while executing a query\n### Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Connections could not be acquired from the underlying database!"}
我对了一下数据库ip,还有用户名和密码,都没错。
00
相似问题