Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagesql
CREATE DATABASE wpkryptondbwpdailyplanetdb;
GRANT ALL PRIVILEGES ON wpkryptondbwpdailyplanetdb.* TO 'wpkryptonuserwpdailyplanetuser'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;

Adjust the variables for your application.

wpkryptondb wpdailyplanetdb - Name of the database for the WordPress application instance. We use the domain name of the website.

wpkryptonuser wpdailyplanetuser - User account for accessing the database.

...

password - Change to password using algorithm based on name of the website domain, in this case kryptondailyplanet.

Tip

Database Admins will not like granting all privileges. After the initial setup is done we will restrict to more minimal privileges.

...

FieldValueComment
Database Namewpkryptondbwpdailyplanetdb 
User Namewpkryptonuserwpdailyplanetuser 
Password This is the application password set during the wpkryptondb wpdailyplanetdb database creation step.
Database HostlocalhostAddress of the database server. In this example, the database is on the same server so use localhost.
Table Prefixbf_The Bonsai Framework approach is to not share a single database instance. As such it is not technically necessary to change the table prefix. However, given the architecture of WordPress and popularity it is recommended to change the prefix to something other than wp_ to make the system less susceptible to attacks.

...

FieldValueComment
Site TitleKryptondailyplanetWe like to reference our domain name.
Usernametempadmin

You probably do not want to use the default admin for username. WordPress (as of Sep 2012) out of the box, has no facilities to stop dictionary attacks against the administration system. Admin will be the first username guessed by automated attacks.

Because the username put here will show up in the default site generated, this will be a temporary administrator account.

Password 

As mentioned, WordPress has no facilities to stop dictionary attacks. On top of that, the default setup exposes your administrator account name on the Internet.

Choose a very very long and complex password. (Anyone know of a good site that shows how quickly an entered password would be broken with a dictionary attack, put the link here)

Your E-mail Whatever email is chosen here, it will not be the final one used by the real administrator account. Keeping in mind that WordPress does not allow duplicate emails, in this example, the administrator will use a personal email and then use a proper email account when the real administrator account is created.
Privacy This depends on the purpose of your website. Unless this is a private site that should not show up on Google, leave it checked.

...

FieldValueComment
Site TitleKryptondailyplanetWe like to reference our domain name.
Usernamesetupadmin

WordPress (as of Sep 2012) out of the box, has no facilities to stop dictionary attacks against the administration system. So pick something not that obvious. The example here is very obvious so don't use it.

Consider using your server name.

Password 

As mentioned, WordPress has no facilities to stop dictionary attacks. On top of that, the default setup exposes your administrator account name on the Internet.

Choose a very very long and complex password. (Anyone know of a good site that shows how quickly an entered password would be broken with a dictionary attack, put the link here)

Your E-mailadmin@bonsaiframework.comIf there is more than one administrator, you should have a general support email box that only administrators have access to. This email address will be used for password recovery purposes.

...

Code Block
languagesql
REVOKE ALL PRIVILEGES, GRANT OPTION FROM 'wpkryptonuserwpdailyplanetuser'@'localhost';
GRANT SELECT, INSERT, UPDATE ON wpkryptondbwpdailyplanetdb.* TO 'wpkryptonuserwpdailyplanetuser'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
EXIT

Adjust the variables for your application.

wpkryptondb wpdailyplanetdb - Name of the database for the WordPress application instance. We use the domain name of the website.

wpkryptonuser wpdailyplanetuser - User account for accessing the database.

...

password - Change to password using algorithm based on name of the website domain, in this case kryptondailyplanet.

Verify the changes took effect,

Code Block
languagesql
SHOW GRANTS FOR 'wpkryptonuserwpdailyplanetuser'@'localhost';

File Permissions

...