MediaWiki: Database schema error when searching










0














I installed MediaWiki on my Mac with MAMP (PHP7.2.10 and MySQL 5.7.23 InnoDB). No error occured and everything except the search works. It shows the following error instead of a result:



[c1af9047a60a292a781befdd] /mediawiki/index.php?search=test&title=Spezial%3ASuche&go=Seite WikimediaRdbmsDBQueryError from line 1457 of /Users/xxx/www/mediawiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
Query: SHOW GLOBAL VARIABLES LIKE 'ft_min_word_len'
Function: SearchMySQL::minSearchLength
Error: 1682 Native table 'performance_schema'.'global_variables' has the wrong structure (localhost)

Backtrace:

#0 /Users/xxx/www/mediawiki/includes/libs/rdbms/database/Database.php(1427): WikimediaRdbmsDatabase->makeQueryException(string, integer, string, string)
#1 /Users/xxx/www/mediawiki/includes/libs/rdbms/database/Database.php(1200): WikimediaRdbmsDatabase->reportQueryError(string, integer, string, string, boolean)
#2 /Users/xxx/www/mediawiki/includes/search/SearchMySQL.php(446): WikimediaRdbmsDatabase->query(string, string)
#3 /Users/xxx/www/mediawiki/includes/search/SearchMySQL.php(402): SearchMySQL->minSearchLength()
#4 /Users/xxx/www/mediawiki/includes/search/SearchMySQL.php(104): SearchMySQL->normalizeText(string)
#5 /Users/bxxx/www/mediawiki/includes/search/SearchMySQL.php(299): SearchMySQL->parseQuery(string, boolean)
#6 /Users/xxx/www/mediawiki/includes/search/SearchMySQL.php(273): SearchMySQL->queryMain(array, string, boolean)
#7 /Users/xxx/www/mediawiki/includes/search/SearchMySQL.php(188): SearchMySQL->getQuery(string, boolean)
#8 /Users/xxx/www/mediawiki/includes/search/SearchMySQL.php(178): SearchMySQL->searchInternal(string, boolean)
#9 /Users/xxx/www/mediawiki/includes/specials/SpecialSearch.php(318): SearchMySQL->searchTitle(string)
#10 /Users/xxx/www/mediawiki/includes/specials/SpecialSearch.php(185): SpecialSearch->showResults(string)
#11 /Users/xxx/www/mediawiki/includes/specialpage/SpecialPage.php(522): SpecialSearch->execute(NULL)
#12 /Users/xxx/www/mediawiki/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL)
#13 /Users/xxx/www/mediawiki/includes/MediaWiki.php(288): SpecialPageFactory::executePath(Title, RequestContext)
#14 /Users/xxx/www/mediawiki/includes/MediaWiki.php(861): MediaWiki->performRequest()
#15 /Users/xxx/www/mediawiki/includes/MediaWiki.php(524): MediaWiki->main()
#16 /Users/xxx/www/mediawiki/index.php(42): MediaWiki->run()
#17 main


A first attempt was to start the web updater, but /mwconfig/ only allows the download of the LocalSettings.php. No way to actually start it.



Any ideas? Thank you!










share|improve this question


























    0














    I installed MediaWiki on my Mac with MAMP (PHP7.2.10 and MySQL 5.7.23 InnoDB). No error occured and everything except the search works. It shows the following error instead of a result:



    [c1af9047a60a292a781befdd] /mediawiki/index.php?search=test&title=Spezial%3ASuche&go=Seite WikimediaRdbmsDBQueryError from line 1457 of /Users/xxx/www/mediawiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
    Query: SHOW GLOBAL VARIABLES LIKE 'ft_min_word_len'
    Function: SearchMySQL::minSearchLength
    Error: 1682 Native table 'performance_schema'.'global_variables' has the wrong structure (localhost)

    Backtrace:

    #0 /Users/xxx/www/mediawiki/includes/libs/rdbms/database/Database.php(1427): WikimediaRdbmsDatabase->makeQueryException(string, integer, string, string)
    #1 /Users/xxx/www/mediawiki/includes/libs/rdbms/database/Database.php(1200): WikimediaRdbmsDatabase->reportQueryError(string, integer, string, string, boolean)
    #2 /Users/xxx/www/mediawiki/includes/search/SearchMySQL.php(446): WikimediaRdbmsDatabase->query(string, string)
    #3 /Users/xxx/www/mediawiki/includes/search/SearchMySQL.php(402): SearchMySQL->minSearchLength()
    #4 /Users/xxx/www/mediawiki/includes/search/SearchMySQL.php(104): SearchMySQL->normalizeText(string)
    #5 /Users/bxxx/www/mediawiki/includes/search/SearchMySQL.php(299): SearchMySQL->parseQuery(string, boolean)
    #6 /Users/xxx/www/mediawiki/includes/search/SearchMySQL.php(273): SearchMySQL->queryMain(array, string, boolean)
    #7 /Users/xxx/www/mediawiki/includes/search/SearchMySQL.php(188): SearchMySQL->getQuery(string, boolean)
    #8 /Users/xxx/www/mediawiki/includes/search/SearchMySQL.php(178): SearchMySQL->searchInternal(string, boolean)
    #9 /Users/xxx/www/mediawiki/includes/specials/SpecialSearch.php(318): SearchMySQL->searchTitle(string)
    #10 /Users/xxx/www/mediawiki/includes/specials/SpecialSearch.php(185): SpecialSearch->showResults(string)
    #11 /Users/xxx/www/mediawiki/includes/specialpage/SpecialPage.php(522): SpecialSearch->execute(NULL)
    #12 /Users/xxx/www/mediawiki/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL)
    #13 /Users/xxx/www/mediawiki/includes/MediaWiki.php(288): SpecialPageFactory::executePath(Title, RequestContext)
    #14 /Users/xxx/www/mediawiki/includes/MediaWiki.php(861): MediaWiki->performRequest()
    #15 /Users/xxx/www/mediawiki/includes/MediaWiki.php(524): MediaWiki->main()
    #16 /Users/xxx/www/mediawiki/index.php(42): MediaWiki->run()
    #17 main


    A first attempt was to start the web updater, but /mwconfig/ only allows the download of the LocalSettings.php. No way to actually start it.



    Any ideas? Thank you!










    share|improve this question
























      0












      0








      0







      I installed MediaWiki on my Mac with MAMP (PHP7.2.10 and MySQL 5.7.23 InnoDB). No error occured and everything except the search works. It shows the following error instead of a result:



      [c1af9047a60a292a781befdd] /mediawiki/index.php?search=test&title=Spezial%3ASuche&go=Seite WikimediaRdbmsDBQueryError from line 1457 of /Users/xxx/www/mediawiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
      Query: SHOW GLOBAL VARIABLES LIKE 'ft_min_word_len'
      Function: SearchMySQL::minSearchLength
      Error: 1682 Native table 'performance_schema'.'global_variables' has the wrong structure (localhost)

      Backtrace:

      #0 /Users/xxx/www/mediawiki/includes/libs/rdbms/database/Database.php(1427): WikimediaRdbmsDatabase->makeQueryException(string, integer, string, string)
      #1 /Users/xxx/www/mediawiki/includes/libs/rdbms/database/Database.php(1200): WikimediaRdbmsDatabase->reportQueryError(string, integer, string, string, boolean)
      #2 /Users/xxx/www/mediawiki/includes/search/SearchMySQL.php(446): WikimediaRdbmsDatabase->query(string, string)
      #3 /Users/xxx/www/mediawiki/includes/search/SearchMySQL.php(402): SearchMySQL->minSearchLength()
      #4 /Users/xxx/www/mediawiki/includes/search/SearchMySQL.php(104): SearchMySQL->normalizeText(string)
      #5 /Users/bxxx/www/mediawiki/includes/search/SearchMySQL.php(299): SearchMySQL->parseQuery(string, boolean)
      #6 /Users/xxx/www/mediawiki/includes/search/SearchMySQL.php(273): SearchMySQL->queryMain(array, string, boolean)
      #7 /Users/xxx/www/mediawiki/includes/search/SearchMySQL.php(188): SearchMySQL->getQuery(string, boolean)
      #8 /Users/xxx/www/mediawiki/includes/search/SearchMySQL.php(178): SearchMySQL->searchInternal(string, boolean)
      #9 /Users/xxx/www/mediawiki/includes/specials/SpecialSearch.php(318): SearchMySQL->searchTitle(string)
      #10 /Users/xxx/www/mediawiki/includes/specials/SpecialSearch.php(185): SpecialSearch->showResults(string)
      #11 /Users/xxx/www/mediawiki/includes/specialpage/SpecialPage.php(522): SpecialSearch->execute(NULL)
      #12 /Users/xxx/www/mediawiki/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL)
      #13 /Users/xxx/www/mediawiki/includes/MediaWiki.php(288): SpecialPageFactory::executePath(Title, RequestContext)
      #14 /Users/xxx/www/mediawiki/includes/MediaWiki.php(861): MediaWiki->performRequest()
      #15 /Users/xxx/www/mediawiki/includes/MediaWiki.php(524): MediaWiki->main()
      #16 /Users/xxx/www/mediawiki/index.php(42): MediaWiki->run()
      #17 main


      A first attempt was to start the web updater, but /mwconfig/ only allows the download of the LocalSettings.php. No way to actually start it.



      Any ideas? Thank you!










      share|improve this question













      I installed MediaWiki on my Mac with MAMP (PHP7.2.10 and MySQL 5.7.23 InnoDB). No error occured and everything except the search works. It shows the following error instead of a result:



      [c1af9047a60a292a781befdd] /mediawiki/index.php?search=test&title=Spezial%3ASuche&go=Seite WikimediaRdbmsDBQueryError from line 1457 of /Users/xxx/www/mediawiki/includes/libs/rdbms/database/Database.php: A database query error has occurred. Did you forget to run your application's database schema updater after upgrading?
      Query: SHOW GLOBAL VARIABLES LIKE 'ft_min_word_len'
      Function: SearchMySQL::minSearchLength
      Error: 1682 Native table 'performance_schema'.'global_variables' has the wrong structure (localhost)

      Backtrace:

      #0 /Users/xxx/www/mediawiki/includes/libs/rdbms/database/Database.php(1427): WikimediaRdbmsDatabase->makeQueryException(string, integer, string, string)
      #1 /Users/xxx/www/mediawiki/includes/libs/rdbms/database/Database.php(1200): WikimediaRdbmsDatabase->reportQueryError(string, integer, string, string, boolean)
      #2 /Users/xxx/www/mediawiki/includes/search/SearchMySQL.php(446): WikimediaRdbmsDatabase->query(string, string)
      #3 /Users/xxx/www/mediawiki/includes/search/SearchMySQL.php(402): SearchMySQL->minSearchLength()
      #4 /Users/xxx/www/mediawiki/includes/search/SearchMySQL.php(104): SearchMySQL->normalizeText(string)
      #5 /Users/bxxx/www/mediawiki/includes/search/SearchMySQL.php(299): SearchMySQL->parseQuery(string, boolean)
      #6 /Users/xxx/www/mediawiki/includes/search/SearchMySQL.php(273): SearchMySQL->queryMain(array, string, boolean)
      #7 /Users/xxx/www/mediawiki/includes/search/SearchMySQL.php(188): SearchMySQL->getQuery(string, boolean)
      #8 /Users/xxx/www/mediawiki/includes/search/SearchMySQL.php(178): SearchMySQL->searchInternal(string, boolean)
      #9 /Users/xxx/www/mediawiki/includes/specials/SpecialSearch.php(318): SearchMySQL->searchTitle(string)
      #10 /Users/xxx/www/mediawiki/includes/specials/SpecialSearch.php(185): SpecialSearch->showResults(string)
      #11 /Users/xxx/www/mediawiki/includes/specialpage/SpecialPage.php(522): SpecialSearch->execute(NULL)
      #12 /Users/xxx/www/mediawiki/includes/specialpage/SpecialPageFactory.php(568): SpecialPage->run(NULL)
      #13 /Users/xxx/www/mediawiki/includes/MediaWiki.php(288): SpecialPageFactory::executePath(Title, RequestContext)
      #14 /Users/xxx/www/mediawiki/includes/MediaWiki.php(861): MediaWiki->performRequest()
      #15 /Users/xxx/www/mediawiki/includes/MediaWiki.php(524): MediaWiki->main()
      #16 /Users/xxx/www/mediawiki/index.php(42): MediaWiki->run()
      #17 main


      A first attempt was to start the web updater, but /mwconfig/ only allows the download of the LocalSettings.php. No way to actually start it.



      Any ideas? Thank you!







      mediawiki






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 12 at 14:21









      Bernd

      845




      845






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I think its a generell Problem with the MySQL installation. Reinstalling the server fixed it.






          share|improve this answer




















          • Indeed, performance_schema is used by MySQL internally. Any problems with that are going to be unrelated to MediaWiki.
            – Tgr
            Nov 16 at 18:13










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53264142%2fmediawiki-database-schema-error-when-searching%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          I think its a generell Problem with the MySQL installation. Reinstalling the server fixed it.






          share|improve this answer




















          • Indeed, performance_schema is used by MySQL internally. Any problems with that are going to be unrelated to MediaWiki.
            – Tgr
            Nov 16 at 18:13















          0














          I think its a generell Problem with the MySQL installation. Reinstalling the server fixed it.






          share|improve this answer




















          • Indeed, performance_schema is used by MySQL internally. Any problems with that are going to be unrelated to MediaWiki.
            – Tgr
            Nov 16 at 18:13













          0












          0








          0






          I think its a generell Problem with the MySQL installation. Reinstalling the server fixed it.






          share|improve this answer












          I think its a generell Problem with the MySQL installation. Reinstalling the server fixed it.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 13 at 5:51









          Bernd

          845




          845











          • Indeed, performance_schema is used by MySQL internally. Any problems with that are going to be unrelated to MediaWiki.
            – Tgr
            Nov 16 at 18:13
















          • Indeed, performance_schema is used by MySQL internally. Any problems with that are going to be unrelated to MediaWiki.
            – Tgr
            Nov 16 at 18:13















          Indeed, performance_schema is used by MySQL internally. Any problems with that are going to be unrelated to MediaWiki.
          – Tgr
          Nov 16 at 18:13




          Indeed, performance_schema is used by MySQL internally. Any problems with that are going to be unrelated to MediaWiki.
          – Tgr
          Nov 16 at 18:13

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53264142%2fmediawiki-database-schema-error-when-searching%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          How to read a connectionString WITH PROVIDER in .NET Core?

          Museum of Modern and Contemporary Art of Trento and Rovereto

          In R, how to develop a multiplot heatmap.2 figure showing key labels successfully