Installing on Windows
  Getting Started
  User Privileges
  Creating a Database
  Import / Export

  Download Manual
  Books
 
by Paul DuBois
ISBN: 0735712123
   
 
by Paul DuBois
ISBN: 0596001452
Getting Started with MySQL
 
Logging into MySQL:
C :\mysql\bin> mysql -h host -u user -p dbname
Enter password: ***********
 

Changing Databases:
mysql> use dbname;

Getting database Information
Listing all databases:
C :\mysql\bin> mysql
show -u user -p
or
mysql> show databases;

Listing all tables for a database:
C :\mysql\bin> mysqlshow -u user -p dbname
or
mysql> use dbname;

mysql> show tables;

Getting table information:
C :\mysql\bin> mysqlshow -u user -p dbname
tablename
or
mysql> use dbname;

mysql> explain tablename; or mysql> describe tablename; or mysql> show columns from tablename;

Display MySQL version:
C :\mysql\bin> mysqladmin -u user -p version status proc
or
mysql> SELECT VERSION();

 

 

 

Copyright 2002 VisualTech Components. All Rights Reserved.