Data Infrastructure Management Software Discussions

How to change MySQL root password in WFA?

TABER_BRANDEN

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

Re: How to change MySQL root password in WFA?

marcusgross

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

Re: How to change MySQL root password in WFA?

TABER_BRANDEN

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

Re: How to change MySQL root password in WFA?

MartinRohrbach

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

Re: How to change MySQL root password in WFA?

marcusgross

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

Earn Rewards for Your Review!
GPI Review Banner
All Community Forums
Public