Closed Bug 549713 Opened 16 years ago Closed 16 years ago

Open to choice: import prod DB on stage

Categories

(mozilla.org Graveyard :: Server Operations, task)

task
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: abuchanan, Assigned: justdave)

References

()

Details

Hey, We need a DB import for opentochoice2.stage.m.c Marking high priority, because Stas and Mary say they need this asap. Please import the production DB. You'll need to run this SQL manually, to fix Wordpress keeping it's base URL in the DB. Update wp_options set option_value = 'http://opentochoice2.stage.mozilla.com' where option_name = 'siteurl'; Update wp_options set option_value = 'http://opentochoice2.stage.mozilla.com' where option_name = 'home'; Thanks! (Sorry we have all this busy work for Open to Choice. Wordpress makes it difficult to release milestones as we usually do. Today should be the last day of this stuff)
Assignee: server-ops → thardcastle
Production dump imported. mysql> Update wp_options set option_value = 'http://opentochoice2.stage.mozilla.com' -> where option_name = 'siteurl'; Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0 mysql> Update wp_options set option_value = 'http://opentochoice2.stage.mozilla.com' -> where option_name = 'home'; Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0
Status: NEW → RESOLVED
Closed: 16 years ago
Resolution: --- → FIXED
I'm guessing you used a DB backup from this morning (> 12 hours ago) Stas would like a fresh dump from production, since a lot has been changed within that last few hours. Thanks, sorry for the re-do.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Need this for 1.0 QA
Assignee: thardcastle → server-ops
Severity: critical → blocker
Assignee: server-ops → justdave
ok, made a fresh dump from the backup server, restored to opentochoice2 database on stage, and re-ran the two queries in comment 1, should be good to go.
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
Reopening, because this has all the context. Please import a production dump to opentochoice.stage.m.c You'll need to run the SQL from comment 0 opentochoice2.stage.m.c exists, but is no longer needed. This stage site can be deleted now. Thanks.
Assignee: justdave → server-ops
Severity: blocker → major
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Summary: DB import for Open to choice stage-2 → Open to choice: import prod DB on stage
ok, done. mysql> Update wp_options set option_value = 'http://opentochoice.stage.mozilla.com' -> where option_name = 'siteurl'; Query OK, 1 row affected (0.01 sec) Rows matched: 1 Changed: 1 Warnings: 0 mysql> Update wp_options set option_value = 'http://opentochoice.stage.mozilla.com' -> where option_name = 'home'; Query OK, 1 row affected (0.01 sec) Rows matched: 1 Changed: 1 Warnings: 0
Status: REOPENED → RESOLVED
Closed: 16 years ago16 years ago
Resolution: --- → FIXED
Assignee: server-ops → justdave
Product: mozilla.org → mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.