简体   繁体   中英

How to export database from mysql console

I´ve try export a database but I can´t.

This command is correct?

(drupaluser@localhost) [(none)]> mysqldump cw-db-arka > cw-backupDB.sql

what is: [(none)] ?

In your command you've only specified the name of the database (cw-db-arka) and the name of the output file (cw-backupDB.sql). You also need to give [mysqldump][1] your username and password:

mysqldump -u username -p cw-db-arka > cw-backupDB.sql

Obviously, username should be substituted with whatever your username is. The -p option will prompt you for your password.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM