Please refer to install mysql.
mysql> create database has; mysql> use has; mysql> CREATE TABLE has_user(user_name VARCHAR(100), pass_word VARCHAR(100));
Example, username is “hdfs”, password is “test”:
mysql> INSERT INTO has_user VALUES ('hdfs', 'test');
Example:
export mysqlUrl=jdbc:mysql://127.0.0.1:3306/has export mysqlUser=root export mysqlPasswd=123456
Example:
export userName=hdfs export password=test