本文源自于:天天学 IT - 知识库
wget http://wiki.ttxit.com/download/attachments/3506679/mysql-connector-java.jar?version=1&modificationDate=1484216591000&api=v2
mkdir -p /usr/share/java && scp mysql-connector-java.jar /usr/share/java
cp Ambari-DDL-MySQL-CREATE.sql ./
mysql -h localhost -P 3306 -uroot -p'root'
create database ambari;
use ambari;
source Ambari-DDL-MySQL-CREATE.sql
务必开启MySQL远程客户端连接, MySQL数据库引擎需为 INNODB 。在 my.cnf配置文件中的 [mysqld] 下添加 default-storage-engine=INNODB, alter database ambari character set latin1;