天天看點

nacos配置本地mysql

1.root權限建立資料庫nacos

2.建立使用者nacos,并授權

create user 'nacos'@'%' identified by '123456';
grant all privileges on nacos.* to "nacos"@'%';
show grants for 'ghost'@'%';
           
nacos配置本地mysql

3.将sql導入nacos資料庫:

nacos配置本地mysql
nacos配置本地mysql

4.關閉叢集模式

       叢集模式在沒有進行叢集配置的情況下,就會啟動失敗。啟動報錯: “nacos is starting with cluster”,意為nacos以群集模式啟動。

        将startup.cmd中的set MODE="cluster"修改為set MODE=“standalone”。

繼續閱讀