Web & Software Developer

Archive for “Bash, Shell, Terminal, Command Line”

Shell commands for command prompt (command line) and ssh terminal commands and code snippets.

Reset MySQL root password in Ubuntu/Linux Command Line

These are the terminal commands to reset your MySQL password for your “root” user. This is useful if you forgot your MySQL password on your local LAMP server. This is a fix for errors like these: ERROR 1045: Access denied for user: ‘root@localhost’ (Using password: NO) ERROR 1045: Access denied for user: ‘root@localhost’ (Using password: … Read more →

Transfer Files From Server to Server via Terminal

This is a quick way to transfer or move files from one server to another server via the command line. This uses SSH. Before you begin, make sure your web host allows SSH connections. Some hosts require that you first enable SSH before they give you access. This works in a linux terminal (or PuTTY … Read more →