MySQL Administration
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
This article describes how to use theCREATE USER
statement to create a new user in MySQL database server. -
MySQL Drop User
This article describes how to drop one or more user accounts from a MySQL server using theDROP USER
statement. -
MySQL Rename User
This article describes how to use theRENAME USER
statement to rename one or more users in MySQL database server. -
MySQL Change Password
This article describes how to useUPDATE
,SET PASSWORD
, andALTER USER
statements to change user password in MySQL. -
MySQL Show Users
This article describes how to list all users in a MySQL database server in MySQL. -
MySQL Lock Users
This article describes how to lock user account in MySQL. -
MySQL Unlock Users
This article describes how to unlock one or more locked user accounts in MySQL. -
MySQL GRANT
This article describes how to use MySQLGRANT
statement to grant specified privileges to a specified user -
MySQL Revoke Privileges
This article will take you to learn how to use theREVOKE
statement to revoke user permissions. -
MySQL Show Grants
This article describes how to use theSHOW GRANTS
statement to list the privileges granted to a user or role. -
MySQL Role
In this tutorial, you will learn how to use MySQL roles to simplify permissions management. -
MySQL Show Databases
This article describes two ways to list all databases in MySQL,SHOW DATABASES
andinformation_schema.schemata
. -
MySQL Show Tables
This article describes how to use theSHOW TABLES
statement list all tables in a specified database. -
MySQL Show Columns
In MySQL,SHOW COLUMNS
statement is used to show information about all the columns of a table -
MySQL DESC
In MySQL,DESC
statements are used to display all columns of a table. -
MySQL Maintain Tables
MySQL provides several statements for maintaining tables,ANALYZE TABLE
,OPTIMIZE TABLE
,CHECK TABLE
andREPAIR TABLE
. -
MySQL Backup
Themysqldump
is a tool for making backup of MySQL databases, it can export MySQL database as a sql file. -
MySQL Restore
MySQL provides theSOURCE
command to help you restore a database from a dump file. -
MySQL Show Processlist
This article describes how to use theSHOW PROCESSLIST
statement display all connections for the current MySQL database server.