Top Menu

Jump to content
    Global modules

    Global modules

    • Home
    • Projects
    • Activity
    • Work packages
    • Gantt charts
    • Calendars
    • Team planners
    • Boards
    • News
    Home
    Home
Help
    Getting started
    • Introduction video
  • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support
  • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation

User menu

Sign in
Forgot your password?

or sign in with your existing account

OpenProject ID Google

Side Menu

Collapse project menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Expand project menu
Plugins
  1. OpenProject Community
  2. OpenProject
  3. Forums
  4. Plugins
  5. Edit Wiki via mysql?

Edit Wiki via mysql?

Added by Thomas Roder about 8 years ago

Hello!

I need to edit the wiki via a script. I figure that directly editing the mysql entry is the best way since the API doesn’t support editing the wiki (yet) and cURL requires javascript. Thinks like PhantomJS are incredibly dirty imo.

I managed to log into the database sucessfully:
In /etc/openproject/installer.dat i found the username and password for the database
In /etc/openproject/conf.d/database i found the the localhost IP
=> mysql -u $USERNAME -h $IP -p, then enter password

I even found data that looks relevant, for example the table of projects and the data contained in the wiki:
SELECT * FROM openproject.projects;
SELECT * FROM openproject.wiki_contents;project_associations

My problem is that I can’t see which wiki entry is connected to which project! Where can I get this information?

Thank you!


My configuration: OpenProject 7.0.2, Ubuntu 16:04, standard mysql installation (via openproject configure)


Loading...