soapstreams Posted March 1, 2020 Posted March 1, 2020 I finally got the youtube grabber to work and want to download the videos from my youtube channel to my KVS site with their view statistics, etc. So I would like to delete the videos I uploaded via ftp and use the grabber instead. Is there a way to reset the video ID count back to 1 instead of it starting at 400 or whatever? Thanks. Jack Quote
Tech Support Posted March 2, 2020 Posted March 2, 2020 The only possible way to restore video ID back to 1 is to directly query database (using phpmyadmin or any other database query tool). You should make sure that you don't have any videos (e.g. all videos are deleted). Then submit the following queries into database: delete from ktvs_admin_audit_log; delete from ktvs_background_tasks; delete from ktvs_background_tasks_history; delete from ktvs_background_imports; delete from ktvs_background_imports_data; delete from ktvs_deleted_content; delete from ktvs_videos; alter table ktvs_videos auto_increment = 1; Then also it is recommended to delete all files in these directories on filesystem: /admin/logs/videos /admin/logs/tasks 1 Quote
soapstreams Posted March 2, 2020 Author Posted March 2, 2020 This didn't work for me. Deleted all the vids, installed MyWebSQL and ran the queries above. Adding videos began at 503, not 1. jdr Quote
Tech Support Posted March 2, 2020 Posted March 2, 2020 This is because you didn't run these queries correctly. Either you didn't run them, or they produced errors that you didn't notice. Quote
soapstreams Posted March 3, 2020 Author Posted March 3, 2020 Here is what was in the SQl editor window of MyWebSQL after running the above query's: ; delete from ktvs_admin_audit_log; `columns_priv`; delete from ktvs_admin_audit_log; `db`; delete from ktvs_admin_audit_log; `engine_cost`; delete from ktvs_admin_audit_log; `event`; delete from ktvs_admin_audit_log; `func`; delete from ktvs_admin_audit_log; `general_log`; delete from ktvs_admin_audit_log; `gtid_executed`; delete from ktvs_admin_audit_log; `help_category`; delete from ktvs_admin_audit_log; `help_keyword`; delete from ktvs_admin_audit_log; `help_relation`; delete from ktvs_admin_audit_log; `help_topic`; delete from ktvs_admin_audit_log; `innodb_index_stats`; delete from ktvs_admin_audit_log; `innodb_table_stats`; delete from ktvs_admin_audit_log; `ndb_binlog_index`; delete from ktvs_admin_audit_log; `plugin`; delete from ktvs_admin_audit_log; `proc`; delete from ktvs_admin_audit_log; `procs_priv`; delete from ktvs_admin_audit_log; `proxies_priv`; delete from ktvs_admin_audit_log; `server_cost`; delete from ktvs_admin_audit_log; `servers`; delete from ktvs_admin_audit_log; `slave_master_info`; delete from ktvs_admin_audit_log; `slave_relay_log_info`; delete from ktvs_admin_audit_log; `slave_worker_info`; delete from ktvs_admin_audit_log; `slow_log`; delete from ktvs_admin_audit_log; `tables_priv`; delete from ktvs_admin_audit_log; `time_zone`; delete from ktvs_admin_audit_log; `time_zone_leap_second`; delete from ktvs_admin_audit_log; `time_zone_name`; delete from ktvs_admin_audit_log; `time_zone_transition`; delete from ktvs_admin_audit_log; `time_zone_transition_type`; delete from ktvs_admin_audit_log; `user`;; delete from ktvs_background_tasks; `columns_priv`; delete from ktvs_background_tasks; `db`; delete from ktvs_background_tasks; `engine_cost`; delete from ktvs_background_tasks; `event`; delete from ktvs_background_tasks; `func`; delete from ktvs_background_tasks; `general_log`; delete from ktvs_background_tasks; `gtid_executed`; delete from ktvs_background_tasks; `help_category`; delete from ktvs_background_tasks; `help_keyword`; delete from ktvs_background_tasks; `help_relation`; delete from ktvs_background_tasks; `help_topic`; delete from ktvs_background_tasks; `innodb_index_stats`; delete from ktvs_background_tasks; `innodb_table_stats`; delete from ktvs_background_tasks; `ndb_binlog_index`; delete from ktvs_background_tasks; `plugin`; delete from ktvs_background_tasks; `proc`; delete from ktvs_background_tasks; `procs_priv`; delete from ktvs_background_tasks; `proxies_priv`; delete from ktvs_background_tasks; `server_cost`; delete from ktvs_background_tasks; `servers`; delete from ktvs_background_tasks; `slave_master_info`; delete from ktvs_background_tasks; `slave_relay_log_info`; delete from ktvs_background_tasks; `slave_worker_info`; delete from ktvs_background_tasks; `slow_log`; delete from ktvs_background_tasks; `tables_priv`; delete from ktvs_background_tasks; `time_zone`; delete from ktvs_background_tasks; `time_zone_leap_second`; delete from ktvs_background_tasks; `time_zone_name`; delete from ktvs_background_tasks; `time_zone_transition`; delete from ktvs_background_tasks; `time_zone_transition_type`; delete from ktvs_background_tasks; `user`;; delete from ktvs_background_tasks_history; `columns_priv`; delete from ktvs_background_tasks_history; `db`; delete from ktvs_background_tasks_history; `engine_cost`; delete from ktvs_background_tasks_history; `event`; delete from ktvs_background_tasks_history; `func`; delete from ktvs_background_tasks_history; `general_log`; delete from ktvs_background_tasks_history; `gtid_executed`; delete from ktvs_background_tasks_history; `help_category`; delete from ktvs_background_tasks_history; `help_keyword`; delete from ktvs_background_tasks_history; `help_relation`; delete from ktvs_background_tasks_history; `help_topic`; delete from ktvs_background_tasks_history; `innodb_index_stats`; delete from ktvs_background_tasks_history; `innodb_table_stats`; delete from ktvs_background_tasks_history; `ndb_binlog_index`; delete from ktvs_background_tasks_history; `plugin`; delete from ktvs_background_tasks_history; `proc`; delete from ktvs_background_tasks_history; `procs_priv`; delete from ktvs_background_tasks_history; `proxies_priv`; delete from ktvs_background_tasks_history; `server_cost`; delete from ktvs_background_tasks_history; `servers`; delete from ktvs_background_tasks_history; `slave_master_info`; delete from ktvs_background_tasks_history; `slave_relay_log_info`; delete from ktvs_background_tasks_history; `slave_worker_info`; delete from ktvs_background_tasks_history; `slow_log`; delete from ktvs_background_tasks_history; `tables_priv`; delete from ktvs_background_tasks_history; `time_zone`; delete from ktvs_background_tasks_history; `time_zone_leap_second`; delete from ktvs_background_tasks_history; `time_zone_name`; delete from ktvs_background_tasks_history; `time_zone_transition`; delete from ktvs_background_tasks_history; `time_zone_transition_type`; delete from ktvs_background_tasks_history; `user`;; delete from ktvs_background_imports; `columns_priv`; delete from ktvs_background_imports; `db`; delete from ktvs_background_imports; `engine_cost`; delete from ktvs_background_imports; `event`; delete from ktvs_background_imports; `func`; delete from ktvs_background_imports; `general_log`; delete from ktvs_background_imports; `gtid_executed`; delete from ktvs_background_imports; `help_category`; delete from ktvs_background_imports; `help_keyword`; delete from ktvs_background_imports; `help_relation`; delete from ktvs_background_imports; `help_topic`; delete from ktvs_background_imports; `innodb_index_stats`; delete from ktvs_background_imports; `innodb_table_stats`; delete from ktvs_background_imports; `ndb_binlog_index`; delete from ktvs_background_imports; `plugin`; delete from ktvs_background_imports; `proc`; delete from ktvs_background_imports; `procs_priv`; delete from ktvs_background_imports; `proxies_priv`; delete from ktvs_background_imports; `server_cost`; delete from ktvs_background_imports; `servers`; delete from ktvs_background_imports; `slave_master_info`; delete from ktvs_background_imports; `slave_relay_log_info`; delete from ktvs_background_imports; `slave_worker_info`; delete from ktvs_background_imports; `slow_log`; delete from ktvs_background_imports; `tables_priv`; delete from ktvs_background_imports; `time_zone`; delete from ktvs_background_imports; `time_zone_leap_second`; delete from ktvs_background_imports; `time_zone_name`; delete from ktvs_background_imports; `time_zone_transition`; delete from ktvs_background_imports; `time_zone_transition_type`; delete from ktvs_background_imports; `user`;; delete from ktvs_background_imports_data; `columns_priv`; delete from ktvs_background_imports_data; `db`; delete from ktvs_background_imports_data; `engine_cost`; delete from ktvs_background_imports_data; `event`; delete from ktvs_background_imports_data; `func`; delete from ktvs_background_imports_data; `general_log`; delete from ktvs_background_imports_data; `gtid_executed`; delete from ktvs_background_imports_data; `help_category`; delete from ktvs_background_imports_data; `help_keyword`; delete from ktvs_background_imports_data; `help_relation`; delete from ktvs_background_imports_data; `help_topic`; delete from ktvs_background_imports_data; `innodb_index_stats`; delete from ktvs_background_imports_data; `innodb_table_stats`; delete from ktvs_background_imports_data; `ndb_binlog_index`; delete from ktvs_background_imports_data; `plugin`; delete from ktvs_background_imports_data; `proc`; delete from ktvs_background_imports_data; `procs_priv`; delete from ktvs_background_imports_data; `proxies_priv`; delete from ktvs_background_imports_data; `server_cost`; delete from ktvs_background_imports_data; `servers`; delete from ktvs_background_imports_data; `slave_master_info`; delete from ktvs_background_imports_data; `slave_relay_log_info`; delete from ktvs_background_imports_data; `slave_worker_info`; delete from ktvs_background_imports_data; `slow_log`; delete from ktvs_background_imports_data; `tables_priv`; delete from ktvs_background_imports_data; `time_zone`; delete from ktvs_background_imports_data; `time_zone_leap_second`; delete from ktvs_background_imports_data; `time_zone_name`; delete from ktvs_background_imports_data; `time_zone_transition`; delete from ktvs_background_imports_data; `time_zone_transition_type`; delete from ktvs_background_imports_data; `user`;; delete from ktvs_deleted_content; `columns_priv`; delete from ktvs_deleted_content; `db`; delete from ktvs_deleted_content; `engine_cost`; delete from ktvs_deleted_content; `event`; delete from ktvs_deleted_content; `func`; delete from ktvs_deleted_content; `general_log`; delete from ktvs_deleted_content; `gtid_executed`; delete from ktvs_deleted_content; `help_category`; delete from ktvs_deleted_content; `help_keyword`; delete from ktvs_deleted_content; `help_relation`; delete from ktvs_deleted_content; `help_topic`; delete from ktvs_deleted_content; `innodb_index_stats`; delete from ktvs_deleted_content; `innodb_table_stats`; delete from ktvs_deleted_content; `ndb_binlog_index`; delete from ktvs_deleted_content; `plugin`; delete from ktvs_deleted_content; `proc`; delete from ktvs_deleted_content; `procs_priv`; delete from ktvs_deleted_content; `proxies_priv`; delete from ktvs_deleted_content; `server_cost`; delete from ktvs_deleted_content; `servers`; delete from ktvs_deleted_content; `slave_master_info`; delete from ktvs_deleted_content; `slave_relay_log_info`; delete from ktvs_deleted_content; `slave_worker_info`; delete from ktvs_deleted_content; `slow_log`; delete from ktvs_deleted_content; `tables_priv`; delete from ktvs_deleted_content; `time_zone`; delete from ktvs_deleted_content; `time_zone_leap_second`; delete from ktvs_deleted_content; `time_zone_name`; delete from ktvs_deleted_content; `time_zone_transition`; delete from ktvs_deleted_content; `time_zone_transition_type`; delete from ktvs_deleted_content; `user`;; delete from ktvs_videos; `columns_priv`; delete from ktvs_videos; `db`; delete from ktvs_videos; `engine_cost`; delete from ktvs_videos; `event`; delete from ktvs_videos; `func`; delete from ktvs_videos; `general_log`; delete from ktvs_videos; `gtid_executed`; delete from ktvs_videos; `help_category`; delete from ktvs_videos; `help_keyword`; delete from ktvs_videos; `help_relation`; delete from ktvs_videos; `help_topic`; delete from ktvs_videos; `innodb_index_stats`; delete from ktvs_videos; `innodb_table_stats`; delete from ktvs_videos; `ndb_binlog_index`; delete from ktvs_videos; `plugin`; delete from ktvs_videos; `proc`; delete from ktvs_videos; `procs_priv`; delete from ktvs_videos; `proxies_priv`; delete from ktvs_videos; `server_cost`; delete from ktvs_videos; `servers`; delete from ktvs_videos; `slave_master_info`; delete from ktvs_videos; `slave_relay_log_info`; delete from ktvs_videos; `slave_worker_info`; delete from ktvs_videos; `slow_log`; delete from ktvs_videos; `tables_priv`; delete from ktvs_videos; `time_zone`; delete from ktvs_videos; `time_zone_leap_second`; delete from ktvs_videos; `time_zone_name`; delete from ktvs_videos; `time_zone_transition`; delete from ktvs_videos; `time_zone_transition_type`; delete from ktvs_videos; `user`;; alter table ktvs_videos auto_increment = 1; `columns_priv`; alter table ktvs_videos auto_increment = 1; `db`; alter table ktvs_videos auto_increment = 1; `engine_cost`; alter table ktvs_videos auto_increment = 1; `event`; alter table ktvs_videos auto_increment = 1; `func`; alter table ktvs_videos auto_increment = 1; `general_log`; alter table ktvs_videos auto_increment = 1; `gtid_executed`; alter table ktvs_videos auto_increment = 1; `help_category`; alter table ktvs_videos auto_increment = 1; `help_keyword`; alter table ktvs_videos auto_increment = 1; `help_relation`; alter table ktvs_videos auto_increment = 1; `help_topic`; alter table ktvs_videos auto_increment = 1; `innodb_index_stats`; alter table ktvs_videos auto_increment = 1; `innodb_table_stats`; alter table ktvs_videos auto_increment = 1; `ndb_binlog_index`; alter table ktvs_videos auto_increment = 1; `plugin`; alter table ktvs_videos auto_increment = 1; `proc`; alter table ktvs_videos auto_increment = 1; `procs_priv`; alter table ktvs_videos auto_increment = 1; `proxies_priv`; alter table ktvs_videos auto_increment = 1; `server_cost`; alter table ktvs_videos auto_increment = 1; `servers`; alter table ktvs_videos auto_increment = 1; `slave_master_info`; alter table ktvs_videos auto_increment = 1; `slave_relay_log_info`; alter table ktvs_videos auto_increment = 1; `slave_worker_info`; alter table ktvs_videos auto_increment = 1; `slow_log`; alter table ktvs_videos auto_increment = 1; `tables_priv`; alter table ktvs_videos auto_increment = 1; `time_zone`; alter table ktvs_videos auto_increment = 1; `time_zone_leap_second`; alter table ktvs_videos auto_increment = 1; `time_zone_name`; alter table ktvs_videos auto_increment = 1; `time_zone_transition`; alter table ktvs_videos auto_increment = 1; `time_zone_transition_type`; alter table ktvs_videos auto_increment = 1; `user`; Quote
soapstreams Posted March 3, 2020 Author Posted March 3, 2020 I can't find any errors. Do you see anything wrong with the above to suggest it was in issue with the querries I ran? Quote
Tech Support Posted March 3, 2020 Posted March 3, 2020 This is not something what is expected to happen, e.g. the queries that you have copied are wrong, they are different from what we have posted here. Most probably your SQL client is doing something wrong, or you are not using it correctly. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.