Download the use of WordPress database plugin SqliteIntegration

WordPress uses Mysql as the database by default

The sqlite-integration plugin can change WordPress to use the Sqlite database

The WordPress official website stopped downloading the plugin in June 2019 (the latest version was wp5.2 at the time), and it is no longer recommended.

But in some demo websites, Sqlite as an intermediate library for import and export, virtual hosting, and low-end use occasions, I think it can still come in handy.

The version compatibility of the plug-in from wp 4.x to wp 5.1.x is relatively stable. It should also be stable under wp5.2.

wp4 uses TinyMCE to edit, wp5 uses Gutenberg editor.

For wp5.1 and below, PHP 5.3 and Mysql 5.0 are required. WP has higher requirements for both php and mysql starting from 5.2.

 

sqlite-integration use


Download the WordPress file and plugin sqlite-integration, unzip it on your machine;

Copy the sqlite-integration folder to the WordPress / wp-content/plugins folder;

Copy the db.php file in the sqlite-integration folder to the WordPress/wp-content folder;

Rename wp-config-sample.php in the WordPress folder to wp-config.php.

Open wp-config.php and find the following code definition and modify it.

define( 'DB_NAME', '' );
define( 'DB_USER', '' );
define( 'DB_PASSWORD', '' );

define( 'USER_MSQYL', 'false' ); //if found

$table_prefix ='wp_';//can be ignored

//这些可以忽略
define( 'AUTH_KEY',         'put your unique phrase here' );
define( 'SECURE_AUTH_KEY',  'put your unique phrase here' );
define( 'LOGGED_IN_KEY',    'put your unique phrase here' );
define( 'NONCE_KEY',        'put your unique phrase here' );
define( 'AUTH_SALT',        'put your unique phrase here' );
define( 'SECURE_AUTH_SALT', 'put your unique phrase here' );
define( 'LOGGED_IN_SALT',   'put your unique phrase here' );
define( 'NONCE_SALT',       'put your unique phrase here' );


Open: http://your website address/wp-admin/install.php to install.


After the installation is complete, the sqlite database file is stored in the {wordpress}\wp-content\database directory.
    For further customization, you can modify the previously copied db.php before installation

 

sqlite-integration plugin download

CSDN search: sqlite integration

12523891

 

Attached

Operations that are necessary for WordPress to strengthen security (priority from high to low)

* Change the "wp-admin" background URL to other content and
  modify the wp-admin folder name or wp-login.php name. The administrator accesses the administrator login page by typing in the URL and sets a complex password.

* Disable xmlrpc. Delete xmlrpc.php, rename it, or comment all the code inside.

* Disable PHP execution and apply to the upload directory or other special directories.

* Limit the number of login attempts. There are many plug-ins, such as Limit Login Attempts Reloaded plug-ins can achieve this function.
  
* If the following operations do not affect your needs,
  1, user registration is prohibited.
  2. Set the required user login to post articles and comments.
  3. Disable the file editing option. wp-config.php find define('DISALLOW_FILE_EDIT', true); here is changed to false
 

 

Guess you like

Origin blog.csdn.net/RoadToTheExpert/article/details/106760543