Migrating the Mad Thought Blog to a new server (mysql, php)
Last modified on July 24, 2026 • 1 min read • 54 words- Dump the database data mysqldump –host=localhost –user=root -p journal >journal.sql
- Create the databse on the new machine mysql -u root -p CREATE DATABASE journal;
- Import the data into the database mysql -p -h localhost journal < journal.sql
- Create the user ‘journal’ GRANT ALL PRIVILEGES ON . TO ‘journal’@’localhost’ IDENTIFIED BY ‘journal’ WITH GRANT OPTION;