https://github.com/alibaba/nacos/blob/master/distribution/conf/nacos-mysql.sql
# Nacos安装 /home/nacos wget https://github.com/alibaba/nacos/releases/download/1.3.2/nacos-server-1.3.2.tar.gz unzip nacos-server-1.3.2.tar.gz # 将 nacos-mysql.sql导到nacos数据库中(上面mysql安装第7步) # 或nacos安装目录下conf/nacos-mysql.sql # 选中数据库nacos_config,执行Nacos自带的创建表脚本https://github.com/alibaba/nacos/blob/master/distribution/conf/nacos-mysql.sql wget https://github.com/alibaba/nacos/blob/master/distribution/conf/nacos-mysql.sql # 使用 conf/nacos-mysql.sql 文件初始化数据库 mysql -uroot -p create database nacos; use nacos; source /home/nacos/conf/nacos-mysql.sql;