1.root权限创建数据库nacos
2.新建用户nacos,并授权
create user 'nacos'@'%' identified by '123456';
grant all privileges on nacos.* to "nacos"@'%';
show grants for 'ghost'@'%';
3.将sql导入nacos数据库:
4.关闭集群模式
集群模式在没有进行集群配置的情况下,就会启动失败。启动报错: “nacos is starting with cluster”,意为nacos以群集模式启动。
将startup.cmd中的set MODE="cluster"修改为set MODE=“standalone”。