Author: Stasyuk Eugene 213 08.03.2024

Perhaps everyone is used to importing a database using phpMyAdmin. But this platform has a limit on the weight of the file that can be uploaded. So if the database dump exceeds this quota, you can’t do it through phpMyAdmin.

Today I’m going to show an alternative way to load the database – through the console.

In OpenServer you can use the built-in console (but it is not necessary, you can use any console). You can open it by clicking on the program checkbox and selecting: Advanced -> Console

The first thing to do is to find out the MySQL version in OpenServer. To do this, go to the program settings:

In the settings window go to the Modules tab and in the MySQL / MariaDB section see what version we have.

In the console, navigate to the MySQL folder:

Importing the database:

mysql -uuser -ppassword db_name < C:\OpenServer\data_base.sql
  • -u — database user
  • -p— database user password 
  • db_name — the name of the database to which you want to import
  • C:\OpenServer\data_base.sql – location and name of the database dump file

Other articles

Page content navigation

Page content navigation

Page content navigation

What’s this? On some sites, you can periodically find something like this: This thing works like this: Each content item is an article heading h2, h3, h4… By clicking on any of these items, we move with the help of an anchor link to the area of the page we need. Also, when we scroll […]

ACF fields in the Gutenberg text editor

ACF fields in the Gutenberg text editor

ACF fields in the Gutenberg text editor

Gutenberg – has been used in WordPress as the main text editor for quite some time now. I, probably like most developers, wasn’t too keen on using it. Especially since you could download the Classic Editor plugin as an alternative and continue to use the old editor. But, as I used Gutenberg, I saw a […]