Error 1045 During Install on Storage Nodes
-
@Raymond-Bell I don’t like ubuntu for these reasons…
They move things around and try to make it more “modular”
At anyrate, while in the server’s /etc/mysql folder (
cd /etc/mysql
) run the commandgrep -rl 'bind-address' .
it should return the filename to the file (or files I suppose) that have that line in them. -
@Tom-Elliott No Change
-
@Tom-Elliott said in Error 1045 During Install on Storage Nodes:
@Raymond-Bell I don’t like ubuntu for these reasons…
They move things around and try to make it more “modular”
At anyrate, while in the server’s /etc/mysql folder (
cd /etc/mysql
) run the commandgrep -rl 'bind-address' .
it should return the filename to the file (or files I suppose) that have that line in them.Found it
vi /etc/mysql/mysql.conf.d/mysqld.cnf
-
Wanna say to the Ubuntu-Linux devs that the mysql conf file structure is really over-the-top confusing and complex.
-
Run installer again on Storage Node to see if it get this error
-
Same issue after commenting out Bind Address and restarting mysql
* Starting FOGSnapinReplicator Service........................OK * Starting FOGScheduler Service...............................OK * Starting FOGPingHosts Service...............................OK * Setting up exports file.....................................OK * Setting up and starting RPCBind.............................OK * Setting up and starting NFS Server..........................OK ERROR 1045 (28000): Access denied for user 'fogstorage'@'10.24.28.16' (using password: YES) ERROR 1045 (28000): Access denied for user 'fogstorage'@'10.24.28.16' (using password: YES) * Setup complete * You still need to setup this node in the fog management | portal. You will need the username and password listed | below.
-
@Raymond-Bell You don’t have to run the installer to test if it’s working or not, that takes way too long.
Instructions on connecting via CLI are in the wiki:
https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_MySQL#Testing_MySQLmysql -u UserNameHere -pPasswordHere -h X.X.X.X -D fog exit
Or for you, use this and put in the password. Please note there is no space between
-p
and thepassword
, this is correct and intentional.mysql -u fogstorage -pPasswordHere -h x.x.x.x -D fog exit
If you get access denied, it’s not working. If you get in, it’s working.
-
@Wayne-Workman The @10.24.28.16 is HIS side, not the IP to the server.
-
@Tom-Elliott correct and corrected.
-
root@fog-GX620-K2:/home/fog/Downloads/svn/bin# mysql -u fogstorage -ppassword -h 10.24.28.18 -D fog ERROR 1045 (28000): Access denied for user 'fog'@'10.24.28.16' (using password: YES) root@fog-GX620-K2:/home/fog/Downloads/svn/bin#
-
@Tom-Elliott
@Wayne-Workman
Got it to connect doing this command
And the error is gone…Thanks guys we can close this issue now
mysql GRANT ALL PRIVILEGES ON fog.* TO 'MysqlUserNameGoesHere'@'%' IDENTIFIED BY 'PasswordHere' WITH GRANT OPTION;
-
Wanting to point out to readers this problem was due to no remote access enabled on the database, and the answer is in the wiki article “Troubleshoot MySQL”.