Changing MySQL user Password at Time of installation of Mysql


#1

Hi All,

I am trying to install MySQL on a Linux server using the Cookbook https://github.com/opscode-cookbooks/mysql

I have encountered a problem, I changed the password of the root in Attributes file, and still it is picking up the old password. I don’t know why?

Is there any other file that requires modification? How can I change the root password instead of “ilikerandompassword”

Please help me how to resolve the issue.

Thanks & Regards,
Jyoti Bhanot


#2

It should be picking it up if you set the attribute… however,

The best thing to do would be to use the mysql_service resource
directly in your recipe.

On Tue, Jul 8, 2014 at 2:21 AM, Bhanot, Jyoti Jyoti.Bhanot@netapp.com wrote:

Hi All,

I am trying to install MySQL on a Linux server using the Cookbook
https://github.com/opscode-cookbooks/mysql

I have encountered a problem, I changed the password of the root in
Attributes file, and still it is picking up the old password. I don’t know
why?

Is there any other file that requires modification? How can I change the
root password instead of “ilikerandompassword”

Please help me how to resolve the issue.

Thanks & Regards,

Jyoti Bhanot


#3

mysql_resource ‘default’ do
server_root_password 'something_else’
end

On Tue, Jul 8, 2014 at 9:59 AM, Sean OMeara someara@opscode.com wrote:

It should be picking it up if you set the attribute… however,

The best thing to do would be to use the mysql_service resource
directly in your recipe.

On Tue, Jul 8, 2014 at 2:21 AM, Bhanot, Jyoti Jyoti.Bhanot@netapp.com wrote:

Hi All,

I am trying to install MySQL on a Linux server using the Cookbook
https://github.com/opscode-cookbooks/mysql

I have encountered a problem, I changed the password of the root in
Attributes file, and still it is picking up the old password. I don’t know
why?

Is there any other file that requires modification? How can I change the
root password instead of “ilikerandompassword”

Please help me how to resolve the issue.

Thanks & Regards,

Jyoti Bhanot