Magento Commerce, 2.0.11

Magento 2.0.18 is the final 2.0.x release. After March 2018, Magento 2.0.x will no longer receive security patches, quality fixes, or documentation updates. To maintain your site's performance, security, and PCIPayment Card Industry: Refers to debit and credit cards and their associated businesses. compliance, upgrade to the latest version of Magento.

Using a Database for Media Storage

By default, all images, compiled CSSCascading Style Sheets: A style sheet language that controls the appearance of HTML documents; a way to control the appearance of text, graphics, lists, links, and all other elements on a web page. files, and compiled JavaScriptA scripting language used with HTML to produce dynamic effects and interactions on web pages. files of the Magento instance are stored in the file system on the web server. You can choose to store these files in a database on a database server. One advantage of this approach is the option of automatic synchronization and reverse synchronization between the web server file system and the database. You can use the default database to store media or create a new one. To be able to use a newly created database as media storageA dedicated space on the content delivery network for your store's assets., you must add information about it and its access credentials to the local.xml file.

To use a database for media storage:

1. On the AdminThe password-protected back office of your store where orders, catalog, content, and configurations are managed. sidebarThe right or left column of a two-column page layout., tap Stores. Then under Settings, choose Configuration.
2. In the panel on the left, under Advanced, choose System.
3. In the upper-left corner set Store View to “Default Config,” to apply the configuration at the global level.
4. Expand the Storage Configuration for Media section. Then, do the following:

Media Storage Configuration for Database
a. Set Media Storage to “Database.”
b. Set Select Media Database to the database you want to use.
c. Tap Synchronize to transfer the existing media to the newly selected database.
d. Enter the Environment Update Time in seconds.
5. When complete, tap Save Config.