环境
CDH 5
MySQL 5.7.30
check the manual that corresponds to your MySQL server version for the right synta to use near '@ default character
set utf8 at line 1
原因
脚本执行方式的问题 , -p 后面不写密码,直接执行, 然后输入密码,结果返回successful
/usr/share/cmf/schema/scm_prepare_database.sh mysql -h 数据库ip地址 -u用户名 -p --scm-host cdhip地址 scm scm scm