# Can't activate plugin

**URL:** <https://community.localwp.com/t/cant-activate-plugin/46597>\
**Category:** Support\
**Created:** [January 21, 2025, 1:41pm UTC](https://community.localwp.com/t/cant-activate-plugin/46597 "2025-01-21T13:41:11Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![nickc](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/nickc/32/21209_2.png) [@nickc](https://community.localwp.com/u/nickc)\
**Post date:** [January 21, 2025, 3:32pm UTC](https://community.localwp.com/t/cant-activate-plugin/46597/5 "2025-01-21T15:32:51Z")

</div>

@EvgeniyO Does it work if you edit your site’s `wp-config.php` to append the port number to your `DB_HOST` value?

See [how to append your port number on Windows](https://community.localwp.com/t/error-cannot-connect-to-mysql-server-on-localhost-during-wp-db-import-in-local-site-shell/42302/2) for an example.

It looks like this plugin may be trying to make a direct database connection instead of using the WordPress database API, and on Windows it could need the port number to do that.

---

_[View the full topic](https://community.localwp.com/t/cant-activate-plugin/46597)._
