MySQL

From Guides

Jump to: navigation, search

Contents

Installation

Basic Commands

Databases

  • Create:
    create database <db_name>
  • Read:
    show databases

Users

  • Create:
    CREATE USER <username> [IDENTIFIED BY [PASSWORD] '<password>']
        [, user [IDENTIFIED BY [PASSWORD] 'password']]
  • Read:
    SELECT * from mysql.user;
    -- To limit the width assign specific columns.
    desc mysql.user;
    

Tables

Documentation

Official MySQL Reference Manual

Personal tools
Google Ads