User Tools

Site Tools


computing:migratewp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
computing:migratewp [2022/07/31 17:48] oemb1905computing:migratewp [2022/07/31 17:50] oemb1905
Line 42: Line 42:
   EXIT;   EXIT;
      
-Now that you have created a temporary database and database user with full privileges, it is time to import the backup.+Now that you have created a temporary database and database user with full privileges, it is time to import the backup. The second command is what I used on some temperamental instance. The first command below is simple enough and should work. I retain both just in case an instance talks back to me.
  
-  mysql -u newdatabaseuser -h localhost -p --database=newdatabase < /path/to/backup-databases.sql+  mysql -u tempuser -p temp < /path/to/backup-databases.sql 
 +  mysql -u tempuser -h localhost -p --database=temp < /path/to/backup-databases.sql
  
 Once it finishes, log into the mysql command mode and verify the original databases made it over: Once it finishes, log into the mysql command mode and verify the original databases made it over:
computing/migratewp.txt · Last modified: 2022/09/03 23:11 by oemb1905