9/14/2023 0 Comments How to unzip files on mac terminal![]() ![]() Mysql -u USERNAME -p DATABASENAME < FILENAME.sql Viewing and examining log files To import a database from an sql dump, run: Mysqldump -single-transaction -u USERNAME -p DATABASENAME > FILENAME.sql ![]() To make sure database dumps are consistent, the –single-transaction should be added, like: Mysqldump -u USERNAME -p DATABASENAME > FILENAME.sql To export the database to a text file, sql dump (.sql) run: To recursively fix permissions for all files in your public/ folder, run the following commands from your home directory.įind public/ -type d -exec chmod 700 \ Importing and exporting databases Our file system is properly configured, and unless you are doing any advanced sharing of files across hosts – your directories only need 700 permissions, and your files need 600 to be usable by the web server. Many online articles tell you to set permissions on files in order to make something work. Nano Handy text-editor with easy controls and onscreen help (certainly easier than vi or vim) Man Show help page for any commandĬd ~ Go to your home directory (typically /kunder/group/username)Ĭat Print contents of file to console You will be prompted for your password, and can log in. On Windows computers many users use PuTTY. On Mac there is a program called Terminal. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |