Skip to main content

Importing and Exporting a MySQL database with Drush

These steps are for Drupal 8 and 9.

 

Export your database

Order here is important.  First you want to clear all the Drupal caches.  Then export / dump the db the sql database to a file in your home directory.

drush cr
drush sql-dump > path/to/your/file/ourpout/sql-dump-file-name.sql

or

git commit tag steps

Adding git tag to your actions.

The regular process that I work to is

git add -A
git commit -m "some comment"
git push

With git tag, whilst there are many options for how you can apply git tag, this initial step I'll keep simple.  As follows:

VS Code - Unable to locate phpcs

phpcs issue in Visual Studio Code, I'm receiving this warning in VS Code:

phpcs: Unable to locate phpcs. Please add phpcs to your global path or use composer decency manager to install it in your project locally.

 

How to fix

You can install phpcs by using composer global command:

composer global require squizlabs/php_codesniffer

Then in VS Code, go to 

The provided host name is not valid for this server

Issue

Trying to run a Drupal 9 localhost site on a Mac through Docker that uses a Wodby base.

 

Normally when using Docker and it's correctly set-up you don't need to add to the etc/hosts file.  However, reading through the Wodby local domains content, it seems this step is required.

Off to the /etc/hosts file

Angular leaflet map doesn't load tiles after refreshing the page

Working through an app project I inherited using Ionic, Angular and ngx-leaflet to name a few elements... I had a problem where the map shows only all map tiles when navigating via my app in the Xcode simulator.  The simulator screen would show just a small tile and the rest of the area where the map should be visible stays in gray color.

Cordova how to update and install or view platforms and plugins

This article references some of the common commands via CLI (command-line interface) in running a Cordova app.

 

Platforms

Platforms are the environment(s) that you want to run your app on.  We will add the 'ios' and 'android' platform and ensure they get saved to config.xml and package.json files.  

To add a platform use the following command:

cordova ios after upgrading to iOS 14 a black screen is shown and no splash screen appears

It appears that the plugin or file path is not working how it used to be on previous iOS versions. Previous version had the splash screen showing.  After upgrading to plugins, a black screen is shown.

The easiest way to simulate the problem is using iOS simulator.  A black screen will show up as the splash screen.

 

Subscribe to