1:创建文件夹D:\data\service\mysql-8.0.11-winx64\data
2:进到D:\data\service\mysql-8.0.11-winx64\bin
第三步:初始化
./mysqld --initialize
第四步:在data下面.err结尾的文件里面找到密码
第五步:测试这个密码是否可以登录
./mysql -h 127.0.0.1 -uroot -p
./mysql -h localhost -uroot -p
修改密码
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123';
 
create database `oim`;
create user 'here'@'localhost' identified by 'Here@123456';
grant all privileges on `oim`.* to 'here'@'localhost';

 ALTER USER 'here'@'localhost' IDENTIFIED WITH mysql_native_password BY 'Here@123456';

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-03-09
  • 2021-10-14
  • 2021-09-05
  • 2021-07-26
猜你喜欢
  • 2021-12-16
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-31
  • 2021-12-30
  • 2021-12-02
相关资源
相似解决方案