Linode Lish bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)

Trial & error with different answers, I came up with this solution (on Lish while server is in rescue-mode): echo “LC_ALL=en_US.UTF-8” >> /etc/environment echo “en_US.UTF-8 UTF-8” >> /etc/locale.gen echo “LANG=en_US.UTF-8” > /etc/locale.conf locale-gen en_US.UTF-8 Last command resulted in the following error: locale-gen: command not found Here’s what you need to do (still on Lish): apt-get … Read more

Export MySQL dump from command line

You can accomplish this using the mysqldump command-line function. For example: If it’s an entire DB, then: $ mysqldump -u [uname] -p db_name > db_backup.sql If it’s all DBs, then: $ mysqldump -u [uname] -p –all-databases > all_db_backup.sql If it’s specific tables within a DB, then: $ mysqldump -u [uname] -p db_name table1 table2 > … Read more

ssh server connect to host xxx port 22: Connection timed out on linux-ubuntu [closed]

Here are a couple of things that could be preventing you from connecting to your Linode instance: DNS problem: if the computer that you’re using to connect to your remote server isn’t resolving test.kameronderdehamer.nl properly then you won’t be able to reach your host. Try to connect using the public IP address assigned to your … Read more

Downloading MySQL dump from command line

You can accomplish this using the mysqldump command-line function. For example: If it’s an entire DB, then: $ mysqldump -u [uname] -p db_name > db_backup.sql If it’s all DBs, then: $ mysqldump -u [uname] -p –all-databases > all_db_backup.sql If it’s specific tables within a DB, then: $ mysqldump -u [uname] -p db_name table1 table2 > … Read more

tech