adspace


How do I import database through command line?

Answer Posted / Nandeshwar Dubey

To import a MySQL database from a .sql file, you can use the `mysql` command-line tool. Here's an example:

```
mysql -u username -p database_name < path/to/your/sqlfile.sql
```

Replace `username`, `database_name`, and `path/to/your/sqlfile.sql` with your actual credentials and the location of your .sql file.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which statement is used in a select query for partial matching?

1247


What is the current mysql version?

1105


What is current version of mysql?

1085


How to Change a users password from unix shell.

1223