Answers.Body: <p>Sounds like it's viewing the DB as being empty. The access credentials are correct (it's technically connecting to the database), but <strong>it's not seeing any tables in the database.</strong></p>
  
  <ol>
  <li>Does your site use a prefix (ie: <code>craft_</code>) before the database tables? Check to make sure that the prefix specified in <code>config/db.php</code> matches the actual table prefixes.</li>
  <li>Double-check to make sure you're connecting to the <em>right</em> database.</li>
  </ol>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-11-19T20:50:10.627Z
Answers.LastActivityDate: 2018-11-19T20:50:10.627Z
Answers.UserDisplayName: Lindsey D
Body: <p>I recently moved a Craft 2 install from a server running PHP 5.x to one running PHP 7.x. All seems to be well. The custom "system offline" message appears as expected when visiting the home page, anyway. It also appears when visiting a random URL.</p>
  
  <p>But when visiting the admin URL I'm redirected to the installer. I'd obviously rather not do this as the system and DB are already there.</p>
  
  <p>Do I have any options here?</p>
  
Tags: <admin><migration>
Title: Visiting admin brings up the installer
ThreadText: # Visiting admin brings up the installer
  
  (Asked by: username_0 on 2018-11-19)
  
  I recently moved a Craft 2 install from a server running PHP 5.x to one running PHP 7.x. All seems to be well. The custom "system offline" message appears as expected when visiting the home page, anyway. It also appears when visiting a random URL.
  
  But when visiting the admin URL I'm redirected to the installer. I'd obviously rather not do this as the system and DB are already there.
  
  Do I have any options here?
  
  **Tags:** admin, migration
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-11-19. Score: 3 | Accepted answer
  
  Sounds like it's viewing the DB as being empty. The access credentials are correct (it's technically connecting to the database), but **it's not seeing any tables in the database.**
  
  1. Does your site use a prefix (ie: `craft_`) before the database tables? Check to make sure that the prefix specified in `config/db.php` matches the actual table prefixes.
  2. Double-check to make sure you're connecting to the *right* database.
  
  
  ---
  
  