Data Infrastructure Management Software Discussions

Highlighted

How to change MySQL root password in WFA?

How can I go about changing the root mysql password for WFA?

I think I know how to change it, I'm just not sure how to tell WFA what the new password is so things don't break upon changing it.

The only place I've seen to enter that password is during the initial install process.

4 REPLIES 4
Highlighted

Re: How to change MySQL root password in WFA?

Hi,

 

you can start mysql using an init file.

 

#
# create admin user
#
# mysql-init.txt
#
CREATE USER 'root'@'%' IDENTIFIED BY 'admin123';
CREATE USER 'root'@'localhost' IDENTIFIED BY 'admin123';
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 'root'@'localhost' WITH GRANT OPTION;

and start mysql using this file

 

mysqld --init-file="mysql-init.txt" --console

Marcus

Highlighted

Re: How to change MySQL root password in WFA?

Thank you for this. But will WFA itself know about this password change and still be able to access the database?

Highlighted

Re: How to change MySQL root password in WFA?

I've never tried changing the mysql root password after installation. However, I believe the WFA server gets the mysql root password on startup through the registry (at least if you're on Windows), have a look in

HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Apache Software Foundation\Procrun 2.0\NA_WFA_SRV\Parameters\Java
Highlighted

Re: How to change MySQL root password in WFA?

Hi,

 

during installation a random password is generated and written into mysql and a jboss config file.

 

That's how WFA accesses the database.

 

Marcus

Check out the KB!
Knowledge Base
All Community Forums