Hi,
Does anybody know where this comes from, i.e., "view structure for view 'page_view'" (see below)? I was not able to find anything about this. Is this from MediaWiki core or from some extension I do not know about? Google suggests some Google Analytics-related stuff but ... Does not look like it to me. For context: Line 50013 prevents me from importing a database correctly.
Thanks a lot for a pointer or some insight.
Cheers, Karsten
-- -- Final view structure for view `page_view` --
/*!50001 DROP VIEW IF EXISTS `page_view`*/; /*!50001 SET @saved_cs_client = @@character_set_client */; /*!50001 SET @saved_cs_results = @@character_set_results */; /*!50001 SET @saved_col_connection = @@collation_connection */; /*!50001 SET character_set_client = utf8 */; /*!50001 SET character_set_results = utf8 */; /*!50001 SET collation_connection = utf8_general_ci */; /*!50001 CREATE ALGORITHM=UNDEFINED */ /*!50013 DEFINER=`root`@`localhost` SQL SECURITY DEFINER */ /*!50001 VIEW `page_view` AS select `page`.`page_title` AS `page_title`,`page`.`page_counter` AS `page_counter` from `page` */; /*!50001 SET character_set_client = @saved_cs_client */; /*!50001 SET character_set_results = @saved_cs_results */; /*!50001 SET collation_connection = @saved_col_connection */; /*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */; /*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */; /*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */; /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */; /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */; /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */; /*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
On 3/24/23 19:06, [[kgh]] wrote:
Does anybody know where this comes from, i.e., "view structure for view 'page_view'" (see below)? I was not able to find anything about this. Is this from MediaWiki core or from some extension I do not know about? Google suggests some Google Analytics-related stuff but ... Does not look like it to me. For context: Line 50013 prevents me from importing a database correctly.
That's a MariaDB view[0] definition. Looks like that one might have been used to give someone access to the `page`.`page_title` and `page`.`page_counter` fields without giving them access to the rest of the page data. Hard to say anything more specific without knowing where you've got that from.
Hi Taavi,
Thanks for the pointer. I got this automatically when dumping the database of a rather old version of MediaWiki. Was something like this in pre-1.23 MediaWiki? It would be a surprise, but one never knows.
Cheers, Karsten
Am 24.03.23 um 18:11 schrieb Taavi Väänänen:
That's a MariaDB view[0] definition. Looks like that one might have been used to give someone access to the `page`.`page_title` and `page`.`page_counter` fields without giving them access to the rest of the page data. Hard to say anything more specific without knowing where you've got that from.
As far as i know mediawiki core has never used views. It is possible some extension made it, but it would be an unusual thing to do (for example the UserSnoop extension makes a view, but not named that). Or maybe a sysadmin made it for their own purposes at some point.
-- Brian
On Friday, March 24, 2023, [[kgh]] mediawiki@kghoffmeyer.de wrote:
Hi Taavi,
Thanks for the pointer. I got this automatically when dumping the database of a rather old version of MediaWiki. Was something like this in pre-1.23 MediaWiki? It would be a surprise, but one never knows.
Cheers, Karsten
Am 24.03.23 um 18:11 schrieb Taavi Väänänen:
That's a MariaDB view[0] definition. Looks like that one might have been used to give someone access to the `page`.`page_title` and `page`.`page_counter` fields without giving them access to the rest of the page data. Hard to say anything more specific without knowing where you've got that from.
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists .wikimedia.org/
Do you happen to have a list of the extensions that were installed on that wiki?
AntiCompositeNumber (he/him)
On Fri, Mar 24, 2023 at 3:19 PM Brian Wolff bawolff@gmail.com wrote:
As far as i know mediawiki core has never used views. It is possible some extension made it, but it would be an unusual thing to do (for example the UserSnoop extension makes a view, but not named that). Or maybe a sysadmin made it for their own purposes at some point.
-- Brian
On Friday, March 24, 2023, [[kgh]] mediawiki@kghoffmeyer.de wrote:
Hi Taavi,
Thanks for the pointer. I got this automatically when dumping the database of a rather old version of MediaWiki. Was something like this in pre-1.23 MediaWiki? It would be a surprise, but one never knows.
Cheers, Karsten
Am 24.03.23 um 18:11 schrieb Taavi Väänänen:
That's a MariaDB view[0] definition. Looks like that one might have been used to give someone access to the `page`.`page_title` and `page`.`page_counter` fields without giving them access to the rest of the page data. Hard to say anything more specific without knowing where you've got that from.
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
Admittedly I cannot tell since I do not know about the technical dark-age of the wiki. However, some extensions that could have been at play here may have been used in the past. Currently, it does not use extensions with its own tables and alike.
Anyhow, the information this does not come from MediaWiki core is already valuable. I will just kill the offending MySQL lines and continue happily after. At least, this is the plan.
Thanks to all for your input on this!
Cheers
Am 24.03.23 um 20:49 schrieb AntiCompositeNumber:
Do you happen to have a list of the extensions that were installed on that wiki?
AntiCompositeNumber (he/him)
On Fri, Mar 24, 2023 at 3:19 PM Brian Wolff bawolff@gmail.com wrote:
As far as i know mediawiki core has never used views. It is possible some extension made it, but it would be an unusual thing to do (for example the UserSnoop extension makes a view, but not named that). Or maybe a sysadmin made it for their own purposes at some point.
-- Brian
On Friday, March 24, 2023, [[kgh]] mediawiki@kghoffmeyer.de wrote:
Hi Taavi,
Thanks for the pointer. I got this automatically when dumping the database of a rather old version of MediaWiki. Was something like this in pre-1.23 MediaWiki? It would be a surprise, but one never knows.
Cheers, Karsten
Am 24.03.23 um 18:11 schrieb Taavi Väänänen:
That's a MariaDB view[0] definition. Looks like that one might have been used to give someone access to the `page`.`page_title` and `page`.`page_counter` fields without giving them access to the rest of the page data. Hard to say anything more specific without knowing where you've got that from.
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
Wikitech-l mailing list -- wikitech-l@lists.wikimedia.org To unsubscribe send an email to wikitech-l-leave@lists.wikimedia.org https://lists.wikimedia.org/postorius/lists/wikitech-l.lists.wikimedia.org/
wikitech-l@lists.wikimedia.org