MySQL备份数据库

问题描述:

我试图从mysql服务器上备份数据库.

I tried to backup the database from my mysql server.

我正在使用MYSQL 5.5.

I am using MYSQL 5.5.

我使用以下命令备份数据库.

I used the following Command to backup the database.

            $ mysqldump -root -admin project > projectbackup.sql

我的用户名:root, 密码:admin, 数据库名称:项目

My username: root, Password : admin, database name : project

但是显示以下错误.如以下屏幕截图所示.

But it showing the following error. as like as the following screenshot.

在命令提示符下尝试此操作,而不是在mysql提示符下

try with this in command prompt not in mysql prompt

 mysqldump -u root -p admin project > projectbackup.sql

文档