Giter Site home page Giter Site logo

Comments (8)

glicht avatar glicht commented on September 17, 2024

Thanks for reporting this. Much appreciated.

Can you provide some info about the mysql configuration. What mysql distribution/version and what are the settings you have for the audit plugin (show global variables like '%audit%').

The bug looks very similar to issue #29. It might be that the fix for #29 didn't resolve the issue fully. At that case I think the node was used at replication. In your case, is this node used in replication by any chance? If so please provide some info about the setup.

from mysql-audit.

outcassed avatar outcassed commented on September 17, 2024

Hi there - this was a master in a single master setup.

I was using:

audit_json_file=0
audit_json_socket_name=/dev/mysqlaudit
audit_json_socket=1
audit_record_objs=database.table1,database.table2

The crash didn't occur immediately. Auditing was working properly, and about a day later the crash occurred.

I'm running Percona-Server-5.5.11-rel20.2 (based on MySQL 5.5.11)

from mysql-audit.

outcassed avatar outcassed commented on September 17, 2024

I should add - it may have been a coincidence but the crash seemed to occur just as I was launching a MySQL GUI tool (Sequel Pro) The previous time that it crashed, it was under normal traffic and there weren't any admin tools/DDL statements/etc.

The commands that Sequel Pro issues upon launch are:

SHOW VARIABLES;
SELECT @@global.max_allowed_packet;
USE database_name;
SHOW DATABASES;
SHOW /!50002 FULL/ TABLES;
SELECT * FROM information_schema.routines WHERE routine_schema = 'database_name' ORDER BY routine_name;
SHOW VARIABLES LIKE 'character_set_database';

I don't believe that I focused on one of the audited tables before the crash, but if I had, it would have issued:

SHOW TABLE STATUS LIKE 'table_name';
SHOW CREATE TABLE table_name;
SELECT COUNT(1) FROM table_name;

from mysql-audit.

glicht avatar glicht commented on September 17, 2024

Do you mean by "single master" that there are no slaves connecting?


Sent from my mobile device
On Feb 2, 2013 5:47 PM, "Casey Forbes" [email protected] wrote:

Hi there - this was a master in a single master setup.

I was using:

audit_json_file=0
audit_json_socket_name=/dev/mysqlaudit
audit_json_socket=1
audit_record_objs=database.table1,database.table2

The crash didn't occur immediately. Auditing was working properly, and
about a day later the crash occurred.

I'm running Percona-Server-5.5.11-rel20.2 (based on MySQL 5.5.11)


Reply to this email directly or view it on GitHubhttps://github.com//issues/31#issuecomment-13032352.

from mysql-audit.

outcassed avatar outcassed commented on September 17, 2024

Sorry, I don't know what I meant by that :) Yes, there are slaves connected. I'm only using the plugin on the master.

from mysql-audit.

glicht avatar glicht commented on September 17, 2024

Just to update. I think I have a scenario regarding this crash. It is associated to how we check objects for non query commands. There could be some scenarios that the query tables list is pointing to garbage. Will be working on putting some safe guards to avoid this.

from mysql-audit.

glicht avatar glicht commented on September 17, 2024

Latest commit should fix the crash issue. If you still experience the crash please re-open the issue.

from mysql-audit.

outcassed avatar outcassed commented on September 17, 2024

Great!

from mysql-audit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.