数据库
yo嚛嚛yo
喜欢吃包子的星星粉
展开
-
mybatis项目连接mysql数据库报错如下: authentication plugin 'caching_sha2_password'
1.打开数据库,在命令行输入 ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'root1'; 数据库查询表,发现新版使用的,caching_sha2_password ,可能我自己的版本不支持这种格式的密码。 | plugin ...原创 2018-05-24 18:33:41 · 3916 阅读 · 0 评论 -
从数据库中读取信息时抛出异常java.sql.SQLException: Parameter index out of range (1 > number of parameter
从数据库中读取信息时,出现如下错误:java.sql.SQLException: Parameter index out of range (1 > number of parameter这个问题困扰了我几乎将近一下午的时间,最后从网上找了好多方法也不管用,最后终于解决了,才发现是我的sql语句中的”?”打成了中文版的”?”,把它改过来就好了,问题就解决啦!原创 2017-07-03 19:01:39 · 3408 阅读 · 2 评论 -
使用MySQL的jdbc驱动关于时区引发的问题
连接数据库异常如下: ### Cause: java.sql.SQLException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via t...原创 2018-10-09 11:32:50 · 2914 阅读 · 0 评论