mysql5.7版本、Linux下
1、
[root@localhost ~]# cd /mnt/mysql/mysql57/bin
[root@localhost bin]# mysqldump --socket=/mnt/mysql/mysql57/mysql.sock -uroot -p -A --compatible=oracle > /mnt/mysql/all.sql
-bash: mysqldump: 未找到命令
[root@localhost bin]# ./mysqldump --socket=/mnt/mysql/mysql57/mysql.sock -uroot -p -A --compatible=oracle > /mnt/mysql/all.sql
Enter password:
mysqldump: Got error: 1045: Access denied for user 'root'@'localhost' (using password: YES) when trying to connect