The simple command to import an .sql file into an existing database: mysql -u username -p database_name < file.sql
Category: terminal
Category: terminal
10
Dec
2017
Several applications (eg. phonegap) require that you have an installation of node.js and/or npm on your machine. On Mac OS X a very useful tool is homebrew in order to be able to install packages, speaking of which the easiest way for installaing node.js and npm is: brew install node OR brew install npm In […]
Category: terminal
10
Dec
2017
In order to have multiple excludes in tar command you need to write several “–exclude” tags. As an example: tar cfz /var/tmp/backup.tgz /var/www/application –exclude /var/www/application/webfolder –exclude /var/www/application/logs