![](https://img-blog.csdnimg.cn/20201014180756919.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
MySQL
gao_jun1
这个作者很懒,什么都没留下…
展开
-
MySQL报错:ERROR 1054 (42S22): Unknown column ‘‘root’‘ in ‘where clause‘
前言:在修改MySQL数据库密码的时候报错ERROR 1054 (42S22): Unknown column ‘‘root’’ in ‘where clause’首先分析update语句存在的错误:1、使用的是MySQL8.0,所以使用的是authentication_string,而不是password。2、属性的字段值需要使用单引号(’’),或者双引号("")包裹。update user set authentication_string=’’ where user = ‘root’.原创 2020-12-11 10:02:43 · 17113 阅读 · 1 评论 -
Navicat连接远程MySQL8.0数据库(Linux系统)
今天在使用navicat连接远程MySQL数据库时,遇到了很多问题,现将我自己的操作过程做一个介绍,希望对大家有用。前提条件:centos7.0以上、MySQL8.0以上操作步骤:1、连接服务器数据库2、查看连接权限3、修改连接权限并进行授权4、授权远程登录设置5、使用Navicat进行连接1、连接远程服务器的数据库mysql -uroot -p2、查看连接权限use mysql;select user,host from user;正常情况下有四个,admin是我自己添.原创 2020-12-10 19:07:53 · 759 阅读 · 0 评论 -
MySQL8.0修改密码(Linux系统)
相比于5.7之前的版本,MySQL8.0修改密码的方式有所不同,这篇博客简单地记录了个人修改密码的过程。1、在忘记MySQL之前密码的情况下,如果没有设置免密登录,就无法进入MySQL中,进行相关的操作。注意:如果授权了远程登录,不建议设置免密登录发现使用正常的 mysql -uroot -p 无法正常登录MySQL[root@VM-0-16-centos etc]# mysql -uroot -pEnter password: ERROR 1045 (28000): Access deni.原创 2020-12-10 17:39:37 · 686 阅读 · 1 评论 -
Caused by: java.sql.SQLException: Field ‘course_id‘ doesn‘t have a default value
一、问题描述Caused by: java.sql.SQLException: Field 'course_id' doesn't have a default value at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129) at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97) at com.原创 2020-10-09 10:43:34 · 488 阅读 · 0 评论 -
Linux系统下配置MySQL,允许指定远程访问
一、进入系统,连接上MySQL这里的admin是你自己数据库中设置的用户名,要根据实际情况填写,然后回车键后输入数据库的密码(注意:密码不会显示,输入之后直接回车即可)[root@VM-0-16-centos ~]# mysql -u admin -pEnter password: Welcome to the MySQL monitor. Commands end with ; or \g.Your MySQL connection id is 261Server version: 5.原创 2020-09-28 20:39:57 · 401 阅读 · 0 评论 -
idea连接MySQL数据库报错:[08001] Could not create connection to database server. Attempted reconnect 3 times
一、问题描述今天在使用idea连接mysql数据库的时候出现了如下问题第一个问题:[08001] Could not create connection to database server. Attempted reconnect 3 times. Giving up.第二个问题:com.mysql.cj.exceptions.WrongArgumentException: No timezone mapping entry for ‘HongKong’.经查看MySQL数据库控制台没有问题,.原创 2020-08-25 13:01:15 · 25214 阅读 · 5 评论