查看全局数据文件路径 show global variables like "%datadir%" 一.文件目录结构 文件安装路径为F:/JJ/MYSQL-5.6.42-WINX64 我们新建的文件一般在data里面存放着,如图 注意!!!一般来说,安装路径中的 data 文件是我们的建立的库或者表的文件,但是有的同学创建的数据库文件,不在这里库里面. ???会在哪里 连接上mysql后,我们输入show global variables like "%datadir%&qu…
ubuntu20.04上边部署了一个新的mysql服务,默认没密码,想要修改密码. 使用如下手段 第一种:ALTER USER 'root'@'localhost' IDENTIFIED BY '密码'; 第二种: update user set authentication_string=password("root") where user='root' and host='localhost'; 第三种: mysqladmin -uroot -p 老密码 password 新密码…
以下操作都要在mysql所在机器操作 一.创建用户 CREATE USER 'dog'@'localhost' IDENTIFIED BY '123456'; 或 insert into mysql.user(Host,User,Password) values('localhost','fe_group',password('123456')); flush privileges; 二.授权 //授权fe_group用户拥有fe数据库的所有权限 grant all privileges on …