You are currently viewing How to Import a Database Via Webmin Control Panel | Import SQL Database File in Webmin

How to Import a Database Via Webmin Control Panel | Import SQL Database File in Webmin

OK – I was looking for a way to do this and there aren’t too many articles that explain exactly how to import a database via Webmin control panel. So what if you need to import a new database using webmin control panel or you want to overwrite an existing database using the Webmin interface software and control panel? Well here are the steps how to import and over-write an already existing database with a new database that shares the same tables and structure;

How to import a database to Webmin control panel

Now – assuming you have downloaded a copy of your database and have an SQL file ready to import – here’s how to  import a new database sql file into Webmin via sql commands to overwrite a database already on the server (these SQL commands are executed for you if you follow these steps);

  1. Log into your Webmin Control Panel (ex: https://yourdomain.com:10000)
  2. Go to Servers > MySQL Database Sever.
  3. Under MySQL Databases – select your database.
  4. Select Execute SQL.
  5. Select the tab Run SQL From File.
  6. Select either; From local file (select a file from your server) or From uploaded file (upload a file from your computer).
  7. Click Execute.
  8. Your MySQL database should now be imported!

WARNING: backup your existing database on the sever you are overwriting first!