Answers.Body: <p>Based on that screenshot - for whatever reason, the CiviCRM data wasn't loaded into the database.  Is it intentional that your MySQL database name for CiviCRM is <code>local</code>?</p>
  <p>You can probably work around this by manually loading the contents of <code>civicrm_generated.mysql</code> (found in <code>&lt;webroot&gt;/wp-content/plugins/civicrm/civicrm/sql</code>) into the database you specified as the CiviCRM database (which you can also double-check in <code>&lt;webroot&gt;/wp-content/uploads/civicrm.settings.php</code> in the <code>CIVICRM_DSN</code> constant).</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-06T22:55:39.413Z
Answers.Text: Thanks a lot! Not sure about MySQL database name - Local is the name of the environment in which I run whole WP server on my local machine so maybe that is why.
  
  As for the workaround - I am able to find CIVICRM_DSN in civicrm.settings.php on the line starting with "define" - but I am not sure which file it references to.
  
    else {
      define('CIVICRM_DSN', 'mysql://root:root@localhost/local?new_link=true');
    }
Answers.UserDisplayName: jjosseff
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-08T16:00:22.337Z
Answers.Text: @jjosseff That isn't a file - that's a MySQL connection string.  Compare it to the database connection info in `wp-config.php`.  The format is `<database software>://<user>:<password>@<server>/<database name>`.  So a) check that the user, password and server match wp-config.php. b) The database name can match WP or not - there are advantages to both - but if you didn't create a separate database manually using phpMyAdmin or similar, the database should be the same as WP. If WP is working, update the `CIVICRM_DSM` to match. `CIVICRM_UF_DSN` should *always* match `wp-config.php`.
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2023-05-05T19:56:51.950Z
Answers.LastActivityDate: 2023-05-05T19:56:51.950Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Body: <p>I am trying to install CivicRM for WordPress site in Local environment <a href="https://localwp.com/" rel="nofollow noreferrer">https://localwp.com/</a>. I unzip the CivicRM (5.60), I place the folder into app/public/wp-content/plugins/ folder. I see the plugin in WP admin interface. I click activate, install starts, but it fails shortly after and the whole WP site becomes unusable.</p>
  <p>PHP: 8.0.22 MySQL: 8.0.16 WP: 6.2 webserver: nginx [![error in the wordpress backend][1]][1]</p>
  <p>I tried to run the install a couple of times with different PHP, MySQL and webserver settings in Local, no change.
  [1]: <a href="https://i.sstatic.net/l92PJ.png" rel="nofollow noreferrer">https://i.sstatic.net/l92PJ.png</a></p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-05-05T09:28:53.030Z
Comments.Text: Welcome to SE!  What is in the CiviCRM log?  If you look in the database (using mysql / phpmyadmin etc) does the table exist?  Do other civicrm tables exist?
Comments.UserDisplayName: Aidan
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2023-05-06T23:08:35.353Z
Comments.Text: Hi, thanks! How do I access CivicRM log? I logged in the database through Adminer and I can see 12 tables, all starting with wp_.... Not sure how civicrm tables look like, but I would say none exists.
Comments.UserDisplayName: jjosseff
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2024-03-08T07:52:19.510Z
Comments.Text: I have similar issue. Is there any resolution for this?
  Regards,
Comments.UserDisplayName: Edi
Tags: <wordpress><installation>
Title: CivicRM 5.60 installation on WordPress 6.2 in Local 6.7.0 fails
ThreadText: # CivicRM 5.60 installation on WordPress 6.2 in Local 6.7.0 fails
  
  (Asked by: username_0 on 2023-05-04)
  
  I am trying to install CivicRM for WordPress site in Local environment <https://localwp.com/>. I unzip the CivicRM (5.60), I place the folder into app/public/wp-content/plugins/ folder. I see the plugin in WP admin interface. I click activate, install starts, but it fails shortly after and the whole WP site becomes unusable.
  
  PHP: 8.0.22 MySQL: 8.0.16 WP: 6.2 webserver: nginx [![error in the wordpress backend][1]][1]
  
  I tried to run the install a couple of times with different PHP, MySQL and webserver settings in Local, no change.
  [1]: <https://i.sstatic.net/l92PJ.png>
  
  **Tags:** wordpress, installation
  
  > **Comments:**
  > **username_1**: Welcome to SE!  What is in the CiviCRM log?  If you look in the database (using mysql / phpmyadmin etc) does the table exist?  Do other civicrm tables exist?  
  > **username_0**: Hi, thanks! How do I access CivicRM log? I logged in the database through Adminer and I can see 12 tables, all starting with wp_.... Not sure how civicrm tables look like, but I would say none exists.  
  > **username_2**: I have similar issue. Is there any resolution for this? Regards,  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_3 on 2023-05-05. Score: 0
  
  Based on that screenshot - for whatever reason, the CiviCRM data wasn't loaded into the database. Is it intentional that your MySQL database name for CiviCRM is `local`?
  
  You can probably work around this by manually loading the contents of `civicrm_generated.mysql` (found in `<webroot>/wp-content/plugins/civicrm/civicrm/sql`) into the database you specified as the CiviCRM database (which you can also double-check in `<webroot>/wp-content/uploads/civicrm.settings.php` in the `CIVICRM_DSN` constant).
  
  > **Comments:**
  > **username_0**: Thanks a lot! Not sure about MySQL database name - Local is the name of the environment in which I run whole WP server on my local machine so maybe that is why.  As for the workaround - I am able to find CIVICRM_DSN in civicrm.settings.php on the line starting with "define" - but I am not sure which file it references to.    else {     define('CIVICRM_DSN', 'mysql://root:root@localhost/local?new_link=true');   }  
  > **username_3**: @username_0 That isn't a file - that's a MySQL connection string.  Compare it to the database connection info in `wp-config.php`.  The format is `<database software>://<user>:<password>@<server>/<database name>`.  So a) check that the user, password and server match wp-config.php. b) The database name can match WP or not - there are advantages to both - but if you didn't create a separate database manually using phpMyAdmin or similar, the database should be the same as WP. If WP is working, update the `CIVICRM_DSM` to match. `CIVICRM_UF_DSN` should *always* match `wp-config.php`.  
  
  ---
  
  