1

Topic: Upgrading to 0.9.7 MariaDB mysql credentials /root/.my.cnf not valid

When attempting to upgrade to iRedAPD-2.1 or iRedAdmin-0.8 by running bash /tools/upgrade_iredapd.sh or /tools/upgrade_iredadmin.sh as root user it erros with:

<<< ERROR >>> MySQL user name 'root' or password is incorrect in /root/.my.cnf, please double check.

/root/.my.cnf is of the format below, and the password is correct:

[client]
host=127.0.0.1
port=3306
user=root
password="aaaabbbbcccc"

I wonder if this is caused by the use of the unix_socket authentication plugin?

MariaDB [(none)]> SELECT User, Password, plugin from mysql.user;
+-------------+-------------------------------------------+-----------------------+
| User        | Password                                  | plugin                |
+-------------+-------------------------------------------+-----------------------+
| root        | *xxxxxxxxxxxxxxxxxxxxxxxxxxx | unix_socket   

cheers
Chris

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Upgrading to 0.9.7 MariaDB mysql credentials /root/.my.cnf not valid

Do you have file /root/.my.cnf (and correct sql username / password)?

3

Re: Upgrading to 0.9.7 MariaDB mysql credentials /root/.my.cnf not valid

Try changing 127.0.0.1 to localhost. I ran into the same issue when I was upgrading mine and this did the trick.

-Ron

4

Re: Upgrading to 0.9.7 MariaDB mysql credentials /root/.my.cnf not valid

ZhangHuangbin wrote:

Do you have file /root/.my.cnf (and correct sql username / password)?

Thanks for the reply.

Yes, the credentials are correct.

Changing 127.0.0.1 to localhost in my.cnf has fixed things.

Cheers

5

Re: Upgrading to 0.9.7 MariaDB mysql credentials /root/.my.cnf not valid

Thank you!

That's worked for me too.

Cheers


rrosson wrote:

Try changing 127.0.0.1 to localhost. I ran into the same issue when I was upgrading mine and this did the trick.

-Ron