Go to main content
Informaid logo

INFORMAID

Main navigation
  • Home
    • Drupal development
    • Partners
    • Drupal achievements
  • Website development
    • Design and development of your website
    • Maintenance and support for your Drupal site
    • Why choose Drupal for your corporate website?
  • Drupal and web blog
    • What is a CMS?
    • Updates in Drupal
    • Drupal 7, end of support

DRUPAL maintenance: drush cr,mysql server has gone away, insert into cache_default

Mysql has gone away on drush cr

Has a DRUPAL module been "snatched"?

Evolving functionalities on your website

Your DRUPAL website lives. Its content and functions evolve.

Adding or removing modules?

In the case of deletion, please follow the steps below:

  • step 1: uninstall the extension in Drupal, via the back office or the drush command

drush pmu <nom_du_module>

  • step 2: delete the module via compose

composer remove drupal/<nom_du_module>

If you forget step 1, what happens?

You deleted the directory in step 2, without uninstalling the module in Drupal.

Drupal still holds in its database the configuration of a module whose directory has been removed from the project.

This is what causes the message, which is not eloquent, when executing the "drush cr" command:

Mysql has gone away...

Too bad, the message doesn't indicate the name of the missing module.

If you've had the good sense to use GIT, the history of the composer.json file should tell you which modules have been "ripped" from your Drupal project tree.

How do I remove the error message?

  • 1. Reinstall the missing module via compose.

    composer require drupal/<nom_du_module>

    You can use the project page on drupal.org.

  • 2. Carry out the two de-intallation steps.

  • step 1: uninstall the extension in Drupal, via the back office or the drush command

    drush pmu <nom_du_module>

  • step 2: delete the module via compose

    composer remove drupal/<nom_du_module>

Contact us

Send us your specifications, describing your request.

1 single file. Limited to 2 MB. Allowed file types: rtf, pdf, doc, docx, odt, ppt, pptx, odp, xls, xlsx, ods. limit 2 MB per form
CAPTCHA
3 + 10 =
Find the solution to this simple mathematical problem and enter the result. For example, for 1 + 3, enter 4.
To show you're not a robot, please answer the question below:
Fabienne RONDEAU, Drupal developer Nantes

Fabienne RONDEAU

Drupal Developer

(33) 6 33 44 07 51
  • INFORMAID RONDEAU's DRUPAL profile
  • Fabienne RONDEAU's linkedin profile
  • INFORMAID Facebook page
  • INFORMAID Twitter page
  • INFORMAID phone number

Footer menu

  • Contact
  • Site map
  • Terms of use
  • Privacy policy
Powered by Drupal{{ 'Drupal logo'|trans }}