LaFong. I guess I will need you to elaborate more with specific commands because I am not advance with command lines in linux....
Well, rather than weigh down the forum with linux instructions, why don't you just PM me? Please ask specific questions in your PM.
This is the error message I am getting for both zimbra user and root:
Code:
zimbra@mail:~$ mysql
ERROR 1045 (28000): Access denied for user 'zimbra'@'localhost' (using password: YES)
zimbra@mail:~$
[
This means it wants the password. If you are using a zimbra login shell on a Zimbra server, it shouldn't need to be provided. At least, it's not required for me.
Code:
[zimbra@mail ~]$ mysql
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4338
Server version: 5.0.87-log Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql>
You can provide the password:
Code:
[zimbra@mail ~]$ zmlocalconfig -s | grep zimbra_mysql_password | awk '{print $3}'
MbvlxxapwUIxGqZo99.zG6Kj
[zimbra@mail ~]$ mysql -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 4363
Server version: 5.0.87-log Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> You can then change the mysql line in the script to include the password:
Code:
mysql -p MbvlxxapwUIxGqZo99.zG6Kj -N -e "SELECT index_id FROM mail_item WHERE folder_id=2" mboxgroup$mailboxId | grep -v + > /tmp/Inbox_Ids