• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    User Login Hist truncation

    Scheduled Pinned Locked Moved Solved
    FOG Problems
    2
    3
    576
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      Robbie McHugh
      last edited by

      Server
      • FOG Version: 120
      • OS: Ubuntu 10.04
      Description

      Hi all, was just wondering is there a way to truncate the user login hist table, I’m not the best with mysql and it has grown considerably due to the size of the company so rather than upping max mem in php.ini thought I would have a clean up 🙂

      Just in the process of building a new environment but wanted to undertake this to allow some of the support guys to use the user history to identify what machines they are using.

      As always thanks in advance,
      Robbie

      1 Reply Last reply Reply Quote 0
      • Wayne WorkmanW
        Wayne Workman
        last edited by Wayne Workman

        First, you can get into FOG’s db via CLI with:
        mysql -D fog
        and leave with:
        quit

        I think it’s stored in the userTracking table. You should check with:
        select * from userTracking;

        If that’s the one, you can truncate it with:
        truncate table userTracking;

        Some other commands that may help you in the future are:
        You can get a listing of tables with:
        show tables;

        and you can get a description of a table with:
        describe userTracking;

        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!
        Daily Clean Installation Results:
        https://fogtesting.fogproject.us/
        FOG Reporting:
        https://fog-external-reporting-results.fogproject.us/

        1 Reply Last reply Reply Quote 0
        • R
          Robbie McHugh
          last edited by

          Hi Wayne,

          Fantastic thank you just what I needed 🙂

          Cheers
          Robbie

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post

          220

          Online

          12.1k

          Users

          17.3k

          Topics

          155.3k

          Posts
          Copyright © 2012-2024 FOG Project