How to import/export mysql database from SSH?

From SSH command line, issue the following command:


mysql -u username -p database_name < dumpfile.sql
* for importing mysql database

mysqldump -u username -p database_name > dumpfile.sql
* for exporting mysql database
  • 0 کاربر این را مفید یافتند
آیا این پاسخ به شما کمک کرد؟

مقالات مربوطه

Allow directory listing in Linux VPS

To allow directory listing or directory browsing in your Linux VPS, create a .htaccess file (Yes,...

Blank page in Horde webmail

When opening an email from Horde webmail, the frame that's suppose to show the message came up as...

Upgrading PHP

By default, PHP that's on Linux VPS is version 5.1.6. In case your web application requires...

How can to increase the maximum attachment in webmail?

You need to increase the PHP directives below from the php.ini (/etc/php.ini) file. ...