0

I am using XAMPP, but I needed a new PHP version, so I had to install the new XAMPP available. As I got many websites, it is very hard to export every single database and then to import it. That's why I have exported all databases in one single SQL file, which is big around 8 GB.

My question is how to import that big file from the command line, when it includes all my databases ?

Thanks in advance !

1
  • 1
    try: mysql -h localhost -u username -p < filename.sql Commented Apr 25, 2017 at 9:19

1 Answer 1

1
C:\xampp\mysql\bin\mysql -u {username} -p {databasename} < file_name.sql
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.