Posts

Showing posts from October, 2017

How do we clear the terminal history in linux?

Open the terminal and run the following commands: 1. ~$ clear It will clear the screen only. 2. ~$ history -c then ~$ rm ~/.bash_history It will permanent clear the history.

How to import the database to mysql under linux?

Just follow the below steps: Method 1: 1. mysql -u root -p //Enter password 2. mysql>use your_db_name 3. mysql>SET autocommit=0 ; source database_file.sql ; COMMIT ; Method 2: mysql -u username -p password db_name < file.sql

CURL is not installed in your php installation

Open Terminal: 1. You have to need fisrt install CURL using sudo apt-get install curl 2. Now restart Apache by typing sudo service apache2 restart 3. Then install PHP5 CURL by typing sudo apt-get install php5-curl 4. It will ask yes or no so type y or yes! 5. Finally restart apache using second line command.