[mysqld]
datadir=/var/lib/mysql
socket=/var/lib/mysql/mysql.sock
user=mysql
# Disabling symbolic-links is recommended to prevent assorted security risks
symbolic-links=0
#skip-name-resolve
#skip-grant-tables
[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid
UPDATE user SET Password = password ( 'ambari' ) WHERE User = 'root' ;
UPDATE user SET Password = password ( 'ambari' ) WHERE User = 'mysql' ;
grant all privileges on *.* to root@'localhost' identified by 'ambari';
grant all privileges on *.* to root@'10.10.%' identified by 'ambari';
grant all privileges on *.* to mysql@'localhost' identified by 'ambari';
grant all privileges on *.* to mysql@'10.10.%' identified by 'ambari';