XAMPP DB Import for Mac using Terminal

/Applications/XAMPP/xamppfiles/bin/mysql -u {username} -p {password} {db name} < {target .sql file}

So mysql on XAMPP has a file size limit on how large the imported .sql file can be. To get around this, there’s 2 solution:

  1. Increase the limit (though this wasn’t working for me).
  2. Import the db through terminal which bypass this limit.

The above command can be used by Mac users to import sql to their desired db on XAMPP. Note that you want to be where the target .sql file location is.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s