Topic on Project:Support desk

import sql data into new installation

3
HaroldRau (talkcontribs)

I have a sql file from a previous mediawiki installation. How do I import those records into a new installation?

88.130.92.106 (talkcontribs)

The easiest way is to use MySQL from the commandline like so:

mysql -u my-mysql-username -p my-database-name < name-of-sql-file.sql

This will import the file name-of-sql-file.sql into the database my-database-name.

Ciencia Al Poder (talkcontribs)
Reply to "import sql data into new installation"