I had mysql database installed on Red Hat6, I have another machine running on RH8, mysql already installed, now I want to "transfer" database to this new machine. I did this on RH6:
mysqldump -u access_log -p access_log | gzip -c >db.archive.gz
A zip file "db.archive.gz" was generated, I FTP to RH8, now I try to run these two commands:
1)mysqladmin -u access_log -p create access_log
2)zcat db.archive.gz | mysql -u access_log -p access_log
user "access_log" already created.
When I run command(1), it gives me error message:
------
[root@dev bin]# ./mysqladmin -u access_log -p create access_log
Enter password:
./mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'access_log@localhost' (Using password: YES)'
[root@dev bin]#
------
what cause that problem, how can I fix it? thanks.
mysqldump -u access_log -p access_log | gzip -c >db.archive.gz
A zip file "db.archive.gz" was generated, I FTP to RH8, now I try to run these two commands:
1)mysqladmin -u access_log -p create access_log
2)zcat db.archive.gz | mysql -u access_log -p access_log
user "access_log" already created.
When I run command(1), it gives me error message:
------
[root@dev bin]# ./mysqladmin -u access_log -p create access_log
Enter password:
./mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'access_log@localhost' (Using password: YES)'
[root@dev bin]#
------
what cause that problem, how can I fix it? thanks.