Basic Linux Command #1

Linux

1. Create new user. Syntax: #useradd <your-username> Example: #useradd sixvel 2. Set or Change User Password. Syntax: #passwd <your-username> <your-password> Example: #passwd sixvel user@123 3.Deleting Directory Syntax: #userdel <your-username> => Deletes a user name from the system. #userdel -rf sixvel => Deletes a user and user in home directory from the system. Example: #userdel sixvel […]

How to export / import your database from MySQL Server

export-or-import

To export you database from MySQL follow the below steps: First login to you Linux server with root / Administrator Privilege, $ su root and Enter you root password Syntax: # sudo mysqldump -u [username] -p [database name] > [database name].sql Example: # sudo mysqldump -u dbuser -p my_database > mydatabasefile.sql Enter Your Database Password ****** […]

Reset the Drupal Admin / User Password

drupal-key

Reset the Drupal Admin Password easily by using the below code. Create a file ‘passwordgenerate.php’ in root folder of drupal and paste the below code and execute the code. I will generates password, Just Past it into the mysql users database who is unable to login.     Try This Code Comment Us Now

Creating Drupal 8.x modules

drupal

A simple Hello, Drupal example To Start Module follow the below steps to enable errors: Go to settings.php <?php error_reporting(E_ALL); ini_set(‘display_errors’, TRUE); ini_set(‘display_startup_errors’, TRUE); //Note:  Do not include the opening and closing PHP tags when you copy this code ?> In addition, navigate to Administration→ Configuration→ Development → logging and errors and select “All messages”. (This sets […]

Top