mysqlcommands
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
mysqlcommands [2019/02/06 13:43] – [Passwords and User Accounts] z0hpvk | mysqlcommands [2025/03/08 22:24] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 21: | Line 21: | ||
show status like ' | show status like ' | ||
show variables like ' | show variables like ' | ||
+ | |||
+ | show engine innodb status\G | ||
+ | show processlist; | ||
+ | show open tables; | ||
+ | status; | ||
+ | |||
+ | set persist max_connection = 1000; (Like ALTER SYSTEM scope=BOTH) | ||
+ | set persist_only max_connection = 1000; (Like ALTER SYSTEM scope=SPFILE) | ||
+ | set global slow_query_log = ON; (Like ALTER SYSTEM scope=MEMORY) | ||
+ | set session sql_mode = ' | ||
</ | </ | ||
==== Passwords and User Accounts ==== | ==== Passwords and User Accounts ==== | ||
+ | === Creating Users === | ||
+ | < | ||
+ | CREATE USER ' | ||
+ | CREATE USER ' | ||
+ | GRANT ALL PRIVILEGES ON *.* TO ' | ||
+ | GRANT SUPER ON *.* TO ' | ||
+ | </ | ||
Global variables can be used to manage user passwords ... \\ | Global variables can be used to manage user passwords ... \\ | ||
These can be overridden at the user level. \\ | These can be overridden at the user level. \\ | ||
Line 44: | Line 61: | ||
grant all on football.* to ' | grant all on football.* to ' | ||
- | select user from mysql.user; | + | select |
select user, password_expired, | select user, password_expired, | ||
</ | </ |
mysqlcommands.1549460585.txt.gz · Last modified: 2025/03/08 22:23 (external edit)