Title: Cannot Activate
Last modified: January 14, 2020

---

# Cannot Activate

 *  [grahamh63](https://wordpress.org/support/users/grahamh63/)
 * (@grahamh63)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/cannot-activate-52/)
 * Hi support, I have just installed rootspersona and tried to activate it. The 
   activation fails with the following:
    Warning: mysqli::__construct(): (HY000/
   2002): Connection refused in /volume1/web/wordpress/wp-content/plugins/rootspersona/
   php/dao/sql/class-RP-Connection-Factory.php on line 16 Connect Error (2002) Connection
   refused
 * My server is my own Synology NAS, WordPress is using PHP 7.3 and MariaDB 10.
 * From the 2012 video by Ed, rootspersona looks like what I’m after.

Viewing 8 replies - 1 through 8 (of 8 total)

 *  Thread Starter [grahamh63](https://wordpress.org/support/users/grahamh63/)
 * (@grahamh63)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/cannot-activate-52/#post-12330717)
 * Bump
    Anything?
 *  Plugin Author [ed4becky](https://wordpress.org/support/users/ed4becky/)
 * (@ed4becky)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/cannot-activate-52/#post-12330721)
 * Sorry, I thought I had responded from my email account.
 * Rootspersona needs the database connection broken up into host and port. A lot
   of current configurations combine them.
 * Check your wp-config.php file
 * This will be fixed in a future version.
 *  Thread Starter [grahamh63](https://wordpress.org/support/users/grahamh63/)
 * (@grahamh63)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/cannot-activate-52/#post-12330764)
 * Thanks Ed,
 * This is what it was:
    /** MySQL hostname */ define( ‘DB_HOST’, ‘localhost:/run/
   mysqld/mysqld10.sock’ );
 * This is what I changed it to:
    /** MySQL hostname */ define( ‘DB_HOST’, ‘localhost:
   3307’ );
 * Now I get an “Error establishing a database connection” error trying to load 
   WordPress.
 * I’m not technical enough for this problem, but I did check phpMyAdmin and there
   are no rootspersona talbes there.
 * Next step?
 *  Thread Starter [grahamh63](https://wordpress.org/support/users/grahamh63/)
 * (@grahamh63)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/cannot-activate-52/#post-12334469)
 * Hi Ed, is there nothing I can do to get the rootspersona plugin working?
 *  Plugin Author [ed4becky](https://wordpress.org/support/users/ed4becky/)
 * (@ed4becky)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/cannot-activate-52/#post-12336154)
 * do you define the host and port as a single variable? the current version expects
   them as separate variables
 *  Thread Starter [grahamh63](https://wordpress.org/support/users/grahamh63/)
 * (@grahamh63)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/cannot-activate-52/#post-12336993)
 * Not sure, this is what it is in the wp-config.php file:
 * /** MySQL hostname */
    define( ‘DB_HOST’, ‘localhost:/run/mysqld/mysqld10.sock’);
 * The way I read that is a single variable – ‘localhost:/run/mysqld/mysqld10.sock’
   “
   localhost” – for the host, and “/run/mysqld/mysqld10.sock” for the port
 * But as I say, I’m not technical enough in this area.
 *  Plugin Author [ed4becky](https://wordpress.org/support/users/ed4becky/)
 * (@ed4becky)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/cannot-activate-52/#post-12364448)
 * OK, red herring, the HOST and PORT do NOT have to be split up anymore.
 * I’ve not seen /run/mysqld/mysqld10.sock as a port before…
 * This should have worked: define( ‘DB_HOST’, ‘localhost:3307’ );
 * Unless the port on your database instance is NOT 3307
 * Try: 127.0.0.1:3307
 *  Thread Starter [grahamh63](https://wordpress.org/support/users/grahamh63/)
 * (@grahamh63)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/cannot-activate-52/#post-12366318)
 * Thanks Ed,
 * I decided to go with the Gedshow plugin. It installed first time and activated
   straight away.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Cannot Activate’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/rootspersona_d7ebd4.svg)
 * [RootsPersona](https://wordpress.org/plugins/rootspersona/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/rootspersona/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/rootspersona/)
 * [Active Topics](https://wordpress.org/support/plugin/rootspersona/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/rootspersona/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/rootspersona/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [grahamh63](https://wordpress.org/support/users/grahamh63/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/cannot-activate-52/#post-12366318)
 * Status: not resolved