1

Topic: upgrade iRedAPD-2.1 (from 2.0)

======== Required information ====
- Iredmail : 0.9.6
- Debian Jessie 
- MariaDB
- Apache2
====
this my error :
MySQL root user name or password is incorrect in /root/.my.cnf, please double check

in my files /root/.my.cnf there is :

[client]
host = localhost   (i'm testing with 127.0.0.1 ......!!!)
port = 3306
user = root
password = password

or

[client]
host = "localhost"  (i'm testing with 127.0.0.1 !!!!!!!!!!!!!!)
port = "3306"
user = "root"
password = "password"

it's the same error !!!

the password of root is Ok, I log into service mysql with the commande  mysql -u root -p   ----> this OK with the good password

----

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

2

Re: upgrade iRedAPD-2.1 (from 2.0)

Try this, no whitespace before/after '=':

[client]
host=localhost
port=3306
user=root
password=password

3

Re: upgrade iRedAPD-2.1 (from 2.0)

======== Required information ====
- Iredmail : 0.9.6
- Ubuntu 14.04.5 
- MySQL 5.5
- Apache 2.4.7
====

Hello,

Same issue here. I tried with localhost but to no avail.

4

Re: upgrade iRedAPD-2.1 (from 2.0)

Can you access mysql by typing "mysql" without any argument?

5

Re: upgrade iRedAPD-2.1 (from 2.0)

This is what I get:

~# mysql
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

6

Re: upgrade iRedAPD-2.1 (from 2.0)

b.loyez wrote:

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

You don't have a password for "root" user in /root/.my.cnf.

7

Re: upgrade iRedAPD-2.1 (from 2.0)

Yes I did set a password for root in .my.cnf. I posted the result of typing mysql without argument.

Similarly to laurelyon1, I can access mysql when I type mysql -u root -p

8

Re: upgrade iRedAPD-2.1 (from 2.0)

Ok I managed to fix it, I just copied /root/.my.cnf into ~/.my.cnf

Here are the commands:
sudo -s
cp /root/.my.cnf ~/.my.cnf