MySQL Administration
Administer MySQL with practical guides for users and privileges, password changes, database backups, and server maintenance.
This chapter introduces the knowledge related to managing databases in MySQL, including user permissions, changing passwords, data backup, starting, stopping, and restarting databases.
-
MySQL Start/Stop
This tutorial walks you through how to start/stop/restart a MySQL server on Linux and Windows. -
MySQL Create User
Create a MySQL account with an explicit host, secure credentials, and only the database privileges it needs. -
MySQL Drop User
This article describes how to drop one or more user accounts from a MySQL server using theDROP USERstatement. -
MySQL Rename User
Rename MySQL accounts with RENAME USER, preserve their privileges, and update client configurations safely. -
MySQL Change Password
Change your own or another MySQL account password with ALTER USER, and rotate application credentials safely. -
MySQL Show Users
List MySQL accounts by user and host, distinguish login and privilege identities withUSER()andCURRENT_USER(), and inspect active sessions. -
MySQL Lock Users
Lock MySQL accounts withALTER USERorCREATE USER, verify explicit lock status, and distinguish it from temporary failed-login blocks. -
MySQL Unlock Users
Unlock MySQL accounts withALTER USER ... ACCOUNT UNLOCK, verify their explicit lock state, and clear temporary failed-login blocks. -
MySQL GRANT
Learn MySQL GRANT syntax and how to assign global, database, and table privileges; grant only what each account needs. -
MySQL Revoke Privileges
This article will take you to learn how to use theREVOKEstatement to revoke user permissions. -
MySQL Show Grants
This article describes how to use theSHOW GRANTSstatement to list the privileges granted to a user or role. -
MySQL Role
Use MySQL roles to assign database privileges consistently, with explicit role hosts and separate application accounts. -
MySQL Show Databases
List MySQL databases with SHOW DATABASES or from the command line. Learn why results vary by account privileges, filter names, and query schema metadata. -
MySQL Show Tables
List MySQL tables and views withSHOW TABLES, run it from the command line, choose a database withFROM, filter names withLIKE, and troubleshoot Error 1046. -
MySQL Show Columns
Use MySQL SHOW COLUMNS or DESCRIBE to inspect column names, types, nullability, keys, defaults, and FULL output, with database and pattern examples. -
MySQL DESC
Use MySQLDESCorDESCRIBEto inspect a table’s columns, types, nullability, indexes, defaults, and extra attributes. -
MySQL Maintain Tables
MySQL provides several statements for maintaining tables,ANALYZE TABLE,OPTIMIZE TABLE,CHECK TABLEandREPAIR TABLE. -
MySQL Backup
Themysqldumpis a tool for making backup of MySQL databases, it can export MySQL database as a sql file. -
MySQL Restore
MySQL provides theSOURCEcommand to help you restore a database from a dump file. -
MySQL Show Processlist
Use MySQLSHOW PROCESSLISTto inspect active sessions, understandPROCESSvisibility andFULLoutput, and query process data with Performance Schema.