mysql 8.0以上修改root密码
-
生成Data文件
mysqld --initialize-insecure --user=mysql
-
启动服务
net start mysql
-
登录mysql
mysql -u root -p
-
查询用户密码
select host,user,authentication_string from mysql.user;
-
设置root用户密码
update user set authentication_string='' where user='root'; ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'Kuai123#'; FLUSH PRIVILEGES;
-
创建库
CREATE DATABASE video CHARACTER SET utf8;
-
pycharm 的url
jdbc:mysql://localhost:3306/video?useSSL=false&serverTimezone=UTC
网友评论