
Security News
Open Source Maintainers Demand Ability to Block Copilot-Generated Issues and PRs
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
MySQL Manager is a utility to perform routine tasks on a MySQL database.
SET GLOBAL SQL_SLAVE_SKIP_COUNTER = 1
and START SLAVE
statements until replication is caught up (leaves slave in inconsistent state with master)my.cnf
without restarting MySQL (limited to dynamic variables)Add this line to your application's Gemfile:
gem 'mysql_manager'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mysql_manager
Usage: bin/mysql-manager options
--kill Kill queries based on specified criteria
--kill:max-query-time TIME Kill queries that have been running for more than TIME
--kill:user USER Kill queries matching USER (repeatable)
--kill:host HOST Kill queries matching HOST (repeatable)
--kill:query SQL Kill queries matching SQL (repeatable)
--kill:command COMMAND Kill queries matching COMMAND (repeatable)
--kill:state STATE Kill queries matching STATE (repeatable)
--kill:db DB Kill queries matching DB (repeatable)
--skip-replication-errors Skip replication errors based on specified criteria
--skip-replication-errors:max-error-duration SECONDS
Abort after attempting to recover after SECONDS elapsed (default: )
--skip-replication-errors:min-healthy-duration SECONDS
Abort after replication healthy for SECONDS elapsed (default: -1)
--skip-replication-errors:max-errors SECONDS
Output replication status events every SECONDS elapsed (default: 10)
--reload-my-cnf Reload my.cnf based on specified criteria
--reload-my-cnf:config FILE Issue set 'SET GLOBAL' for each variable in FILE (default: /etc/my.cnf)
--reload-my-cnf:groups GROUP Issue set 'SET GLOBAL' for each variable in FILE (default: mysqld, mysqld_safe, mysql.server, mysql_server, server, mysql)
--db:dsn DSN DSN to connect to MySQL database (default: DBI:Mysql:mysql:localhost)
--db:username USERNAME Username corresponding to DSN (default: root)
--db:password PASSWORD Password corresponding to DSN (default: )
--log:level LEVEL Logging level
--log:file FILE Write logs to FILE (default: STDERR)
--log:age DAYS Rotate logs after DAYS pass (default: 7)
--log:size SIZE Rotate logs after the grow past SIZE bytes
--hotcopy Perform a hotcopy
--hotcopy:data-dir PATH Rsync mysql data dir from PATH (default: /var/lib/mysql)
--hotcopy:backup-dir PATH Rsync to PATH (default: /tmp/mysql)
--hotcopy:rsync-args ARGS Arguments to pass to rsync (default: -av)
--hotcopy:rsync-bin bin Rsync executable path (default: rsync)
--hotcopy:rsync-ttl ttl Acceptable rsync execution time before performing table locks (default: 60)
--dry-run Do not run statements which affect the state of the database when executed
-V, --version Display version information
-h, --help Display this screen
If you specify a simple string as a parameter (e.g. --kill:user api
), this is interpreted as an exactly matching
regular expression (e.g. /^api$/
).
To specify your own regexp, include a leading and trailing slash. To match all usernames that start with api
:
--kill:user "/^api/"
Kill all queries by user "api" that have been running longer than 30 seconds:
mysql-manager --kill --kill:user api --kill:max-query-time 30 --log:level DEBUG --dry-run
Kill only SELECT queries by users starting with "api" from a host containing "test" that have been running longer than 30 seconds:
mysql-manager --kill --kill:user "/^api/" --kill:query "/^SELECT/" --kill:host "/test/" --kill:max-query-time 30 --dry-run
Recover a MySQL Slave that has failed replication and wait for it to remain healthy (fully caught up to master) for 60 seconds.
mysql-manager --skip-replication-errors --skip-replication-errors:min-healthy-duration 60 --log:level DEBUG
Reload /etc/my.cnf
without restarting MySQL:
mysql-manager --reload-my-cnf --reload-my-cnf:config /etc/my.cnf --log:level DEBUG
Perform a hotcopy backup of the running mysql database using rsync to a remote server. It will repeated rsync the folder without locks until syncs take less than 30 seconds.
mysql-manager --hotcopy \
--hotcopy:data-dir /var/lib/mysql/ \
--hotcopy:backup-dir user@remote.host.com:/tmp/mysql/ \
--hotcopy:rsync-args "-av --exclude=*.err" \
--hotcopy:rsync-ttl 30 \
--db:user root \
--db:pass $MYSQL_ROOT_PASSWORD
https://github.com/osterman/mysql_manager/graphs/contributors
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that mysql_manager demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Open source maintainers are urging GitHub to let them block Copilot from submitting AI-generated issues and pull requests to their repositories.
Research
Security News
Malicious Koishi plugin silently exfiltrates messages with hex strings to a hardcoded QQ account, exposing secrets in chatbots across platforms.
Research
Security News
Malicious PyPI checkers validate stolen emails against TikTok and Instagram APIs, enabling targeted account attacks and dark web credential sales.