Zimbra offers Open Source email server software and shared calendar for Linux and the Mac
Go Back   Zimbra :: Forums > Zimbra Collaboration Suite > Administrators

Welcome to the Zimbra :: Forums!
Welcome, if you would like to post a comment please register. We also encourage you to explore all things Zimbra with our team and members of the community.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-17-2008, 03:48 PM
Senior Member
 
Posts: 73
Default Moving from FOSS to NE server - mysql problem

hi all

we are trying to move from a Zimbra 4.5.11 FOSS server to
a Zimbra 4.5.11 Network Edition server.

We followed the steps in this link:

Network Edition Moving from Open Source to Network Edition ZCS - Zimbra :: Wiki

In step 4 of Preparing the Network Edition Server, after we ran the mysql -f zimbra < /backup/mysql.sql , we got these errors

ERROR 1044 (42000) at line 20: Access denied for user 'zimbra'@'localhost' to database 'information_schema'
ERROR 1044 (42000) at line 28: Access denied for user 'zimbra'@'localhost' to database 'information_schema'
ERROR 1044 (42000) at line 29: Access denied for user 'zimbra'@'localhost' to database 'information_schema'
ERROR 1044 (42000) at line 41: Access denied for user 'zimbra'@'localhost' to database 'information_schema'
ERROR 1044 (42000) at line 42: Access denied for user 'zimbra'@'localhost' to database 'information_schema'
.....
.....
.....
ERROR 1044 (42000) at line 514: Access denied for user 'zimbra'@'localhost' to database 'information_schema'
ERROR 1044 (42000) at line 516: Access denied for user 'zimbra'@'localhost' to database 'information_schema'


--------------


Any advice?

We are thinking of installing 4.5.11 FOSS on the new server and then copying the contents in /opt/zimbra/db from the old server to the new server, instead of doing mysqldump and then importing it.
Will this work?

Thank you very much in anticipation.

---

okay

this is what i did -- seems to work

mysql -u root -p [PASSWORD REMOVED] -v zimbra < /backup/mysql.sql

Last edited by jholder; 03-18-2008 at 02:56 PM..
Reply With Quote
  #2 (permalink)  
Old 03-18-2008, 01:03 PM
Moderator
 
Posts: 7,928
Default

Hi,

is all okay now ?

for other peoples reference to get the mysql password you can run :-

Code:
su - zimbra
zmlocalconfig -s | grep mysql_root_password
__________________
Reply With Quote
  #3 (permalink)  
Old 03-18-2008, 01:19 PM
Senior Member
 
Posts: 73
Default

No, not okay.

got this 'error' message when doing as root. not sure if this is normal or not?
usually this kind of output happens when the command parameters are incorrect.

/opt/zimbra/mysql/bin/mysql Ver 14.12 Distrib 5.0.45, for unknown-linux-gnu (x86_64) using readline 5.0
Copyright (C) 2002 MySQL AB
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL license
Usage: /opt/zimbra/mysql/bin/mysql [OPTIONS] [database]
-?, --help Display this help and exit.
-I, --help Synonym for -?
--auto-rehash Enable automatic rehashing. One doesn't need to use
'rehash' to get table and field completion, but startup
and reconnecting may take a longer time. Disable with
--disable-auto-rehash.
-A, --no-auto-rehash
No automatic rehashing. One has to use 'rehash' to get
table and field completion. This gives a quicker start of
mysql and disables rehashing on reconnect. WARNING:
options deprecated; use --disable-auto-rehash instead.
-B, --batch Don't use history file. Disable interactive behavior.
(Enables --silent)
--character-sets-dir=name
Directory where character sets are.
--default-character-set=name
Set the default character set.
-C, --compress Use compression in server/client protocol.
-#, --debug[=#] This is a non-debug version. Catch this and exit
-D, --database=name Database to use.
--delimiter=name Delimiter to be used.
-e, --execute=name Execute command and quit. (Disables --force and history
file)
-E, --vertical Print the output of a query (rows) vertically.
-f, --force Continue even if we get an sql error.
-G, --named-commands
Enable named commands. Named commands mean this program's
internal commands; see mysql> help . When enabled, the
named commands can be used from any line of the query,
otherwise only from the first line, before an enter.
Disable with --disable-named-commands. This option is
disabled by default.
-g, --no-named-commands
Named commands are disabled. Use \* form only, or use
named commands only in the beginning of a line ending
with a semicolon ( Since version 10.9 the client now
starts with this option ENABLED by default! Disable with
'-G'. Long format commands still work from the first
line. WARNING: option deprecated; use
--disable-named-commands instead.
-i, --ignore-spaces Ignore space after function names.
--local-infile Enable/disable LOAD DATA LOCAL INFILE.
-b, --no-beep Turn off beep on error.
-h, --host=name Connect to host.
-H, --html Produce HTML output.
-X, --xml Produce XML output
--line-numbers Write line numbers for errors.
-L, --skip-line-numbers
Don't write line number for errors. WARNING: -L is
deprecated, use long version of this option instead.
-n, --unbuffered Flush buffer after each query.
--column-names Write column names in results.
-N, --skip-column-names
Don't write column names in results. WARNING: -N is
deprecated, use long version of this options instead.
-O, --set-variable=name
Change the value of a variable. Please note that this
option is deprecated; you can set variables directly with
--variable-name=value.
--sigint-ignore Ignore SIGINT (CTRL-C)
-o, --one-database Only update the default database. This is useful for
skipping updates to other database in the update log.
--pager[=name] Pager to use to display results. If you don't supply an
option the default pager is taken from your ENV variable
PAGER. Valid pagers are less, more, cat [> filename],
etc. See interactive help (\h) also. This option does not
work in batch mode. Disable with --disable-pager. This
option is disabled by default.
--no-pager Disable pager and print to stdout. See interactive help
(\h) also. WARNING: option deprecated; use
--disable-pager instead.
-p, --password[=name]
Password to use when connecting to server. If password is
not given it's asked from the tty.
-P, --port=# Port number to use for connection.
--prompt=name Set the mysql prompt to this value.
--protocol=name The protocol of connection (tcp,socket,pipe,memory).
-q, --quick Don't cache result, print it row by row. This may slow
down the server if the output is suspended. Doesn't use
history file.
-r, --raw Write fields without conversion. Used with --batch.
--reconnect Reconnect if the connection is lost. Disable with
--disable-reconnect. This option is enabled by default.
-s, --silent Be more silent. Print results with a tab as separator,
each row on new line.
-S, --socket=name Socket file to use for connection.
-t, --table Output in table format.
-T, --debug-info Print some debug info at exit.
--tee=name Append everything into outfile. See interactive help (\h)
also. Does not work in batch mode. Disable with
--disable-tee. This option is disabled by default.
--no-tee Disable outfile. See interactive help (\h) also. WARNING:
option deprecated; use --disable-tee instead
-u, --user=name User for login if not current user.
-U, --safe-updates Only allow UPDATE and DELETE that uses keys.
-U, --i-am-a-dummy Synonym for option --safe-updates, -U.
-v, --verbose Write more. (-v -v -v gives the table output format).
-V, --version Output version information and exit.
-w, --wait Wait and retry if connection is down.
--connect_timeout=# Number of seconds before connection timeout.
--max_allowed_packet=#
Max packet length to send to, or receive from server
--net_buffer_length=#
Buffer for TCP/IP and socket communication
--select_limit=# Automatic limit for SELECT when using --safe-updates
--max_join_size=# Automatic limit for rows in a join when using
--safe-updates
--secure-auth Refuse client connecting to server if it uses old
(pre-4.1.1) protocol
--show-warnings Show warnings after every statement.

Default options are read from the following files in the given order:
/etc/my.cnf ~/.my.cnf /opt/zimbra/mysql-standard-5.0.45-pc-linux-gnu-i686-glibc23/etc/my.cnf
The following groups are read: mysql client
The following options may be given as the first argument:
--print-defaults Print the program argument list and exit
--no-defaults Don't read default options from any options file
--defaults-file=# Only read default options from the given file #
--defaults-extra-file=# Read this file after the global files are read

Variables (--variable-name=value)
and boolean options {FALSE|TRUE} Value (after reading options)
--------------------------------- -----------------------------
auto-rehash TRUE
character-sets-dir (No default value)
default-character-set latin1
compress FALSE
database (No default value)
delimiter ;
vertical FALSE
force FALSE
named-commands FALSE
local-infile FALSE
no-beep FALSE
host (No default value)
html FALSE
xml FALSE
line-numbers TRUE
unbuffered FALSE
column-names TRUE
sigint-ignore FALSE
port 0
prompt mysql>
quick FALSE
raw FALSE
reconnect FALSE
socket /opt/zimbra/db/mysql.sock
table FALSE
debug-info FALSE
user root
safe-updates FALSE
i-am-a-dummy FALSE
connect_timeout 0
max_allowed_packet 16777216
net_buffer_length 16384
select_limit 1000
max_join_size 1000000
secure-auth FALSE
show-warnings FALSE
You have new mail in /var/spool/mail/zimbra
[zimbra@mail conf]$

Quote:
Originally Posted by uxbod View Post
Hi,

is all okay now ?

for other peoples reference to get the mysql password you can run :-

Code:
su - zimbra
zmlocalconfig -s | grep mysql_root_password
Reply With Quote
  #4 (permalink)  
Old 03-18-2008, 01:40 PM
Senior Member
 
Posts: 73
Default

okay actually mysql -f zimbra < /backup/mysql.sql seems to work -- even with all the error messages


but mysql -u root -p [PASSWORD REMOVED] -f zimbra < /backup/mysql.sql does not.


but i do not know what is in the mysql database, and i don't know if the migration is successful -- because i used test servers and there aren't much data on them. what does the mysql database store? if it is just standard items, and i had used defaults, then perhaps the zimbra server will start okay when the mysql import is okay or not?


Also when i did the slapadd, i got this warning message


[zimbra@mail ~]$ /opt/zimbra/openldap/sbin/slapadd \
> -f /opt/zimbra/conf/slapd.conf -cv \
> < /backup/ldap.bak
The first database does not allow slapadd; using the first available one (2)
bdb_db_open: Warning - No DB_CONFIG file found in directory /opt/zimbra/openldap-data: (2)
Expect poor performance for suffix .
added: "cn=zimbra" (00000001)
added: "cn=admins,cn=zimbra" (00000002)
added: "uid=zimbra,cn=admins,cn=zimbra" (00000003)
added: "cn=zimlets,cn=zimbra" (00000004)

Last edited by jholder; 03-18-2008 at 02:57 PM..
Reply With Quote
  #5 (permalink)  
Old 03-18-2008, 02:57 PM
Former Zimbran
 
Posts: 5,606
Default

Holy Security, Batman! I've removed your mysql root passwords. Be careful what you post. We wouldn't want you to get hacked.

-john
Reply With Quote
  #6 (permalink)  
Old 03-18-2008, 03:11 PM
Senior Member
 
Posts: 73
Default

the passwords are not the real ones. changed some of the characters.
in any case, we were only using test servers.

we wanted to upgrade to Network Edition but still could not figure an efficient way to do this.

We have a Zimbra 4.5.11 FOSS running on Fedora 4 32-bit,
and we want to migrate to another machine with Zimbra 5.0.2 NE on RHEL 5 64-bit.

A Zimbra reseller suggested this:
1) install 4.5.11 on the existing machine (4.5.5 FOSS on Fedora4).
2) install RHEL 32-bit on an 'intermediary' machine and install 4.5.11 on it.
3) Follow instructions to move from FOSS from existing machine to NE to 'intermediary' machine
Network Edition Moving from Open Source to Network Edition ZCS - Zimbra :: Wiki
4) Install RHEL 64-bit with 4.5.11 on new machine.
5) Follow instructions to move from 32-bit to 64-bit
Network Edition: Moving from 32-bit to 64-bit Server - Zimbra :: Wiki
6) Upgrade to 5.0.3

But this is not acceptable as we will need to have a 3rd machine.

So we tested moving directly from 4.5.11 FOSS (on 32-bit Fedora) to 4.5.11 NE (on 64-bit RHEL). It seemed to work -- but there were the error messages as per the above messages.

This is what we tested (on test machines with little test mail data and few users).

1) Install 4.5.11 FOSS on Fedora 4 32-bit (to simulate our existing server -- old server).
2) Install 4.5.11 NE on RHEL 5 64-bit on new server
3) Follow instructions to move from FOSS on old server to NE on new server.
Network Edition Moving from Open Source to Network Edition ZCS - Zimbra :: Wiki


Any advice? Are the error messages important?
Can we move directly from FOSS on 32-bit Fedora to NE on 64-bit RHEL?

Thank you.





Quote:
Originally Posted by jholder View Post
Holy Security, Batman! I've removed your mysql root passwords. Be careful what you post. We wouldn't want you to get hacked.

-john

Last edited by zzzzsg; 03-18-2008 at 03:33 PM..
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads

Why Join?

Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.

blog.zimbra.com




 

SEO by vBSEO ©2011, Crawlability, Inc.