Showing 4 Result(s)

Importing and Exporting of MYSQL Database with Command Line SSH

Importing MYSQL Database Syntax $ mysql -u username -p database_name < path_to_mysql_file_here Importing existing MYSQL database with filename "wordpress.sql" stored at directory "/home/nishant/", Username is "root", terminal will prompt for asking password. $ mysql -u root -p wordpress < /home/nishant/wordpress.sql Exporting MYSQL Database Syntax $ mysqldump -p -u username database_name > path_to_mysql_file_here Exporting MYSQL database …

How to mount remote directory using SSH ?

How to mount remote directory using SSH and make it available it as local directory. Install the module sshfs: [php]sudo apt-get install sshfs[/php] Load it to kernel [php]sudo modprobe fuse[/php] Set permissions [php] sudo adduser $USER fuse sudo chown root:fuse /dev/fuse sudo chmod +x /dev/fusermount [/php] Now create a directory to mount the remote folder …