Open sandeepiii opened 5 years ago
Hi Expert Iam using simple command to change root password after MySql installation ,But getting the Above error (signal 9 kill)
script "change password" do interpreter "bash" user "root" cwd "/tmp" code <<-EOH
root_temp_pass=$(grep 'A temporary password' /mysql/log/mysqld.log |tail -1 |awk '{split($0,a,": "); print a[2]}')
mysql -uroot -p"$root_temp_pass" -Be "ALTER USER 'root'@'localhost' IDENTIFIED BY 'Czt732ck#';" --connect-expired-password EOH end
Inspite of the above signal kill command , the password change happened i logged in using new password.But why this error is coming is very confusing.
Hi Expert Iam using simple command to change root password after MySql installation ,But getting the Above error (signal 9 kill)
script "change password" do interpreter "bash" user "root" cwd "/tmp" code <<-EOH
MYSQL
root_temp_pass=$(grep 'A temporary password' /mysql/log/mysqld.log |tail -1 |awk '{split($0,a,": "); print a[2]}')
Login as root change password
mysql -uroot -p"$root_temp_pass" -Be "ALTER USER 'root'@'localhost' IDENTIFIED BY 'Czt732ck#';" --connect-expired-password EOH end