My Drupal Notes - flashvnn/Drupal-Notes GitHub Wiki

###Drush Commands

Export Database to File

drush cc

drush sql-dump > ~/my-sql-dump-file-name.sql

Import Database

drush sql-drop

drush sql-cli < ~/my-sql-dump-file-name.sql

Reset admin password

drush uli

drush upwd admin --password="newpassword"

Redis

Clear all database With redis-cli

FLUSHDB - Removes data from your connection's CURRENT database.

FLUSHALL - Removes data from ALL databases.

CKEditor

Install CKEditor CodeMirror Syntax Highlighting

Download CodeMirror plugin here: http://ckeditor.com/addon/codemirror.

Extract to ckeditor plugins folder ex: sites\all\libraries\ckeditor\plugins

Open Drupal CKeditor config: admin/config/content/ckeditor/edit/Advanced

Chose: Advanced options

In Custom JavaScript configuration add new line:

config.extraPlugins = 'codemirror';//this line used to load codemirror plugin.

Results:

ckeditor

.htaccess

Fix owner problem

Change "Options +FollowSymLinks" to "Options +SymLinksIfOwnerMatch"

Import data with Feeds

Disable Pathauto and others related module before run import

Disable Search and other Search like Search API...

Disable Metatag (???)