You can deploy a MySQL instance using one of the following options:
Option I: Allow HDP to deploy MySQL instance
On the master install machine, edit the
file and provide values for the following properties:master-install-machine
/gsInstaller/gsInstaller.propertiesdbflavor=mysql
dbhost=$FQDN_of_MySQL_host_machine
On the master install machine, deploy a MySQL client.
Execute the auxiliary script
startMySql.sh
:sh master-install-machine/gsInstaller/startMySql.sh
Option II: Manually deploy MySQL
Connect to the host machine where you plan to deploy MySQL instance and from a terminal window, type:
For RHEL and CentOS:
yum install mysql-server
For SLES:
zypper install mysql
Start the instance.
For RHEL and CentOS:
/etc/init.d/mysqld start
For SLES:
/etc/init.d/mysqld start
Set the
root
user password and remove unnecessary information fromlog
andSTDOUT
mysqladmin -u root password $password
mysqladmin -u root 2>&1 >/dev/null