About 4,880,000 results
Open links in new tab
  1. How to import an SQL file using the command line in MySQL?

    Jul 16, 2013 · To import an SQL file into a database (make sure you are in the same directory as the SQL file or supply the full path to the file), do: mysql -u username -p database_name < …

  2. How can I import a database with MySQL from terminal?

    Dec 28, 2010 · Import SQL file: $ mysql -u[user_name] -p [database_name] < [file_name.sql] Example: mysqldump -u root -p max_production < max_development.sql. Note SQL file …

  3. How to import mysql database through command prompt

    Dec 3, 2014 · To import database from dump file (in this case called filename.sql) use: mysql -u username -p password database_name < filename.sql. If you are on Windows you will need to …

  4. How To Export and Import a .SQL File From Command Line With …

    Oct 2, 2022 · In this article , we will learn to export and import .SQL files with command line options. Export: You can export the database along with its structure into .SQL file using a …

  5. How to Import a MySQL Database using Command Line

    Jul 20, 2021 · You can import the SQL file with the following command: mysql -u username -p db_name < file.sql. username: Username with which you connect to the database; db_name: …

  6. How To Import a SQL File With a MySQL Command Line - Squash

    Oct 1, 2023 · If you want to import the SQL file into a new database, you can create it using the following command in the MySQL command line: CREATE DATABASE your_database_name; …

  7. 3 Ways To Import SQL File In MySQL (Step-By-Step Guide)

    Nov 11, 2023 · There are 3 common ways to import an SQL file into MYSQL: Run mysql -u USER -p DATABASE_NAME < PATH/TO/FILE.sql in the command line (or terminal). Use MySQL …

  8. How to import an SQL file using the command line in MySQL?

    Importing an SQL file via the command line is often the fastest and most efficient way to work with databases in MySQL. Whether you’re loading production backups, seeding a fresh …

  9. Import an SQL file in MySQL (Using CMD or Powershell)

    Dec 15, 2022 · Using Command Prompt (CMD) It is very easy to import .sql file in MySQL database using command prompt, simply open CMD in Administrator mode, navigate to the …

  10. mysql - How to export and import a .sql file from command line

    Jul 10, 2012 · Type the following command to import sql data file: $ mysql -u username -p -h localhost DATA-BASE-NAME < data.sql In this example, import 'data.sql' file into 'blog' …

  11. Some results have been removed