Title: PowerPress Posts From MySQL addon
Author: machouinard
Published: <strong>2012 年 6 月 8 日</strong>
Last modified: 2016 年 6 月 14 日

---

搜索插件

![](https://ps.w.org/powerpress-posts-from-mysql/assets/banner-772x250.png?rev=567689)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/powerpress-posts-from-mysql_c3cfda.svg)

# PowerPress Posts From MySQL addon

 作者：[machouinard](https://profiles.wordpress.org/machouinard/)

[下载](https://downloads.wordpress.org/plugin/powerpress-posts-from-mysql.0.9.10.zip)

 * [详情](https://cn.wordpress.org/plugins/powerpress-posts-from-mysql/#description)
 * [评价](https://cn.wordpress.org/plugins/powerpress-posts-from-mysql/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/powerpress-posts-from-mysql/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/powerpress-posts-from-mysql/#developers)

 [支持](https://wordpress.org/support/plugin/powerpress-posts-from-mysql/)

## 描述

By populating a MySQL database table with all the information about the podcasts
you can automatically create the posts needed for podcasting with the [Blubrry PowerPress plugin](https://wordpress.org/extend/plugins/powerpress/).
This will allow you to post as draft or published and switch between the two as 
well as delete posts. Probably not useful to actual Podcasters, but it works for
what I needed.

Information required from the database:

 * Host
 * 数据库名
 * Database Table Name
 * Database Username
 * Database Password

Also field names from the database which will be used for the following:

 * Primary Key Field
 * 书名
 * 目录
 * Post Body
 * Featured Image(URL to an image)
 * Media URL
 * Media size
 * Media type
 * 发布日期

Your categories need to be setup prior to using this.

#### Example database table for importing from

You may use the following database table as an example template for your database.

    ```
    CREATE TABLE episodes (
      episode_id int(11) NOT NULL,
      episode_title varchar(255) NOT NULL,
      episode_category varchar(255) NOT NULL,
      episode_body text NOT NULL,
      episode_image_url varchar(4000) NOT NULL,
      episode_url varchar(4000) NOT NULL,
      episode_length int(11) NOT NULL,
      episode_content_type varchar(20) NOT NULL,
      episode_date date NOT NULL,
      PRIMARY KEY (episode_id)
    ) DEFAULT CHARSET=utf8;
    ```

Note: You must have at least one record in the database table before you can enter
the database column fields in this plugin.

## 屏幕截图

[[

[[

[[

[[

[[

## 安装

This section describes how to install the plugin and get it working. (make sure 
you have created the category in your blog before running or all the podcasts will
be uncategorized)

 1. Upload the folder containing pfd.php and process.php to the /wp-content/plugins/
    directory
 2. Activate the plugin through the Plugins menu in WordPress
 3. Configure your database settings in Post From MySQL under the Tools menu in the
    Dashboard and click Save Changes
 4. After you’ve saved your settings and a connection is made, the total number of 
    records will be displayed.

**NOTE! For this plugin to work correctly, it requires the MySQL table to use a 
primary key. \* see _[How should I set up the database table](https://wordpress.org/extend/plugins/powerpress-posts-from-mysql/faq/)?
_in the FAQ for more information.**

## 常见问题

  How should I set up the database table?

 * Create fields that correspond to those on the MySQL Fields page of the plugin(
   Post Title, Post Category, Post Body, Post/Featured Image URL, Podcast URL, Podcast
   Size, Podcast Media Type, Post Date ).
 * Make sure to include a primary key.

Note: Guid uses your primary key. appended to the site’s root URL.

  Does the MySQL table have to be on the same DB Host as my WordPress install?

No, but it helps. You will need to make sure you have remote access to the MySQL
database if it’s on a different host. I have a site on DreamHost using a database
on HostGator and it works great.

## 评价

此插件暂无评价。

## 贡献者及开发者

「PowerPress Posts From MySQL addon」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ machouinard ](https://profiles.wordpress.org/machouinard/)
 *   [ blubrry ](https://profiles.wordpress.org/blubrry/)

[帮助将「PowerPress Posts From MySQL addon」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/powerpress-posts-from-mysql)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/powerpress-posts-from-mysql/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/powerpress-posts-from-mysql/)，或
通过[RSS](https://plugins.trac.wordpress.org/log/powerpress-posts-from-mysql/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/powerpress-posts-from-mysql/)。

## 更新日志

#### 0.9.10

 * Released 06/14/2016
 * Updated plugin for WordPress version 4.5+
 * Created extended class for connecting to database to bypass connect to database
   error page if connection failed.
 * Fixed bug with `find_podcast_by_id()` function not using the primary_key column.
 * Fixed bug with `does_field_exist()` function not using the table member variable(
   was hard coded to use ppfm database table).
 * Updated the `_publish_post()` function to optionally include data if it’s avaialble
   or skip otherwise.

v 0.9.9

 * Changed the way media_handle_sideload was being used

v 0.9.8

 * (note: Most of this work was done months ago. I got busy and forgot about it)
 * Rewritten from the ground up
 * Learned a lot about WordPress
 * Learned a lot about Git, too.

v 0.9.4

 * Added check to ensure BluBrry PowerPress is installed and activated
 * More CSS and HTML changes in an attempt to pretty this thing up a bit
 * Changed code to allow for localization
 * Used Google Translate to create .mo files for:
 * 法语
 * Spanish – Spain/Ecuador
 * 意大利
 * Danish – Denmark
 * 德语
 * 土耳其语

v 0.9.2

 * Included a Primary Key field in the settings page
 * Added ability to set the status of posts as either Published or Draft
 * Made some aesthetic changes to the settings page using some CSS and jQuery
 * Removed some unused code and comments from process.php

v 0.9.1

 * Added database connectivity checking.
 * Added check to prevent posting same podcast twice based on the podcast/post title.
 * Added ability to post from a range of records in the table based on a specific
   database field.
 * Added display of total records in table.

## 额外信息

 *  版本 **0.9.10**
 *  最后更新：**10 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 3.0 或更高版本 **
 *  已测试的最高版本为 **4.5.33**
 *  语言
 * [English (US)](https://wordpress.org/plugins/powerpress-posts-from-mysql/)
 * 标签
 * [mysql](https://cn.wordpress.org/plugins/tags/mysql/)[podcast](https://cn.wordpress.org/plugins/tags/podcast/)
   [podcasting](https://cn.wordpress.org/plugins/tags/podcasting/)[powerpress](https://cn.wordpress.org/plugins/tags/powerpress/)
   [sql](https://cn.wordpress.org/plugins/tags/sql/)
 *  [高级视图](https://cn.wordpress.org/plugins/powerpress-posts-from-mysql/advanced/)

## 评级

 5 星（最高 5 星）。

 *  [  1 条 5 星评价     ](https://wordpress.org/support/plugin/powerpress-posts-from-mysql/reviews/?filter=5)
 *  [  0 条 4 星评价     ](https://wordpress.org/support/plugin/powerpress-posts-from-mysql/reviews/?filter=4)
 *  [  0 条 3 星评价     ](https://wordpress.org/support/plugin/powerpress-posts-from-mysql/reviews/?filter=3)
 *  [  0 条 2 星评价     ](https://wordpress.org/support/plugin/powerpress-posts-from-mysql/reviews/?filter=2)
 *  [  0 条 1 星评价     ](https://wordpress.org/support/plugin/powerpress-posts-from-mysql/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/powerpress-posts-from-mysql/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/powerpress-posts-from-mysql/reviews/)

## 贡献者

 *   [ machouinard ](https://profiles.wordpress.org/machouinard/)
 *   [ blubrry ](https://profiles.wordpress.org/blubrry/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/powerpress-posts-from-mysql/)