Title: Database errors
Last modified: October 4, 2019

---

# Database errors

 *  Resolved [MrBrian](https://wordpress.org/support/users/mrbrian/)
 * (@mrbrian)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/plugin-not-creating-database/)
 * Installed, activated plugin, went to Media->Cleaner. This is at the top of the
   page, and scanning of course does not work – why is the plugin not creating it’s
   table on activation?:
 * WordPress database error: [Table ‘mylo_wp.wp_mclean_scan’ doesn’t exist]
    SELECT
   COUNT(*) FROM wp_mclean_scan WHERE ignored = 0 AND deleted = 0
 * WordPress database error: [Table ‘mylo_wp.wp_mclean_scan’ doesn’t exist]
    SELECT
   SUM(size) FROM wp_mclean_scan WHERE ignored = 0 AND deleted = 0
 * WordPress database error: [Table ‘mylo_wp.wp_mclean_scan’ doesn’t exist]
    SELECT
   SUM(size) FROM wp_mclean_scan WHERE ignored = 0 AND deleted = 1
 * WordPress database error: [Table ‘mylo_wp.wp_mclean_scan’ doesn’t exist]
    SELECT
   COUNT(*) FROM wp_mclean_scan WHERE ignored = 1
 * WordPress database error: [Table ‘mylo_wp.wp_mclean_scan’ doesn’t exist]
    SELECT
   COUNT(*) FROM wp_mclean_scan WHERE deleted = 1
 * WordPress database error: [Table ‘mylo_wp.wp_mclean_scan’ doesn’t exist]
    SELECT
   id, type, postId, path, size, ignored, deleted, issue FROM wp_mclean_scan WHERE
   ignored = 0 AND deleted = 0 AND path LIKE ‘%%’ ORDER BY path, time DESC LIMIT
   0, 20
    -  This topic was modified 6 years, 8 months ago by [MrBrian](https://wordpress.org/support/users/mrbrian/).

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

 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/plugin-not-creating-database/#post-11997393)
 * Hello,
 * It should, but I encountered too many issues in creating them on activation. 
   For some reason, I haven’t checked again, and you need to click on Reset in the
   Media Cleaner Dashboard. If you do so, it should work. Have you tried?
 *  Thread Starter [MrBrian](https://wordpress.org/support/users/mrbrian/)
 * (@mrbrian)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/plugin-not-creating-database/#post-11997416)
 * Hitting reset worked, but you probably want to get this sorted. People are uneasy
   enough with plugins like this.
 *  Plugin Author [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * (@tigroumeow)
 * [6 years, 8 months ago](https://wordpress.org/support/topic/plugin-not-creating-database/#post-11997426)
 * You are right 🙂 I will do that in the next release. That will make things simpler.

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

The topic ‘Database errors’ is closed to new replies.

 * ![](https://ps.w.org/media-cleaner/assets/icon-256x256.png?rev=2791576)
 * [Media Cleaner: Clean your WordPress!](https://wordpress.org/plugins/media-cleaner/)
 * [Support Threads](https://wordpress.org/support/plugin/media-cleaner/)
 * [Active Topics](https://wordpress.org/support/plugin/media-cleaner/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-cleaner/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-cleaner/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Jordy Meow](https://wordpress.org/support/users/tigroumeow/)
 * Last activity: [6 years, 8 months ago](https://wordpress.org/support/topic/plugin-not-creating-database/#post-11997426)
 * Status: resolved