MySQL : Java Glossary

go to home page M words local find full screen, hide local find menu Google search web for more information on this topic jump to foot of page translate this page with Babelfish 2008-03-29 by Roedy Green ©1996-2008 Canadian Mind Products
index page for letter ⇒ punctuation 0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z (all)
MySQL
A popular open source database. It started out as a toy but has matured into a full fledged SQL database engine. It runs as a windows service in the background, automatically starting up with you boot. Sun bought it out on 2008-02-28.

It even supports full text searching, the ability to find records that contain a word anywhere in the key. Simply declare an index of type FULLTEXT on the TEXT/CHAR/VARCHAR table columns which contains the text you want to search, then query the table using the "MATCH()… AGAINST" syntax. There’s a manual section which describes this facility.

MySQL follows the Unix tradition with command line utilities with a plethora of options and the documentation that treats them all as equally important. There is also a GUI-style database administrator available as a separate download. It lets you create new users and do the configuring with checkboxes instead of ini files.

Part of the configuration is to decide on a single encoding for all databases, e.g. UTF-8 for multilingual, or perhaps Latin-1 for English only.

The MySQL users have nothing to do with operating system users. MySQL manages its own list of users and passwords stored encrypted in the database tables. The administrator is called root.

Gotchas

Key Utilities

Key MySQL Utilities
Utility Use
mysql Enter SQL commands manually to build tables or do ad hoc queries and updates. Invoke with
mysql -hlocalhost -uroot -psesame
to define the host (possibly remote), user id, and password. Note the lack of a space after -h, -u and -p. You can then type in commands like these:
/* display version of MySQL you are using */
SELECT VERSION();

/* display all databases */
SHOW DATABASES;
SQL: for more commands you can enter to explore
You can run SQL command from a text file like this:
mysql -hlocalhost -uroot -psesame < mycommands.sql
mysqlD The database engine itself. You can start it from the command line, though normally you start and stop it as a service. There are several versions of it, with various functions stripped out for speed.
mysqlAdmin Database adminstration, e.g. clear the grant tables, by command line. Invoke with
mysqlAdmin -hlocalhost -uroot -psesame
mysqlAdministrator a GUI-style database administrator available as a separate download. It lets you create new uses and do the configuring with checkboxes instead of ini files. It is quite a bit easier to use than the command line version. It lives in its own directory, not in bin with the rest.
mysqlImport Used to bulk load text data into the database.
mysqlInstanceConfig configure the my.ini file with a GUI.
mysqlShow Displays a list of databases available. Invoke with
mysqlShow -hlocalhost -uroot -psesame
You can also use this command to display a list of available tables:
mysqlShow -hlocalhost -uroot -psesame alphadatabase
or a list of column names in a particular table
mysqlShow -hlocalhost -uroot -psesame alphadatabase peopletable
or a list of values in a particular column
mysqlShow -hlocalhost -uroot -psesame alphadatabase peopletable birthdate

Books

book cover recommend book⇒MySQL Cookbook
 paperbackhardcover
ISBN13:978-0-596-00145-2clickcounter978-0-596-52708-2clickcounter
ISBN10:0-596-00145-2clickcounter0-596-52708-Xclickcounter
publisher:O’Reilly recommended
published:2006-11-27
by:Paul Dubois
Covers Java, C, Perl and PHP.
UK flag abe books.co.uk abe books.ca Canadian flag
UK flag amazon.co.uk. amazon.ca. Canadian flag
German flag abe books.de chapters.indigo.ca . Canadian flag
German flag amazon.de. abe books.com American flag
French flag abe books.fr amazon.com. American flag
French flag amazon.fr. barnes and noble.com American flag
Italian flag abe books.it powells.com American flag
Spanish flag iberlibro.com download o’reilly safari American flag
abe books anz Australian flag
book cover recommend book⇒MySQL (3rd Edition)
 paperback
ISBN13:978-0-672-32673-8clickcounter
ISBN10:0-672-32673-6clickcounter
publisher:Sams
published:2005-03-18
by:Paul DuBois
1320 pages. Aimed at the beginner who knows nothing of SQL or MySQL. It is aimed at the C, Perl or PHP programmer. It does not discuss Java or JDBC.
UK flag abe books.co.uk abe books.ca Canadian flag
UK flag amazon.co.uk. amazon.ca. Canadian flag
German flag abe books.de chapters.indigo.ca . Canadian flag
German flag amazon.de. abe books.com American flag
French flag abe books.fr amazon.com. American flag
French flag amazon.fr. barnes and noble.com American flag
Italian flag abe books.it powells.com American flag
Spanish flag iberlibro.com abe books anz Australian flag

CMP homejump to top
CMP logo
feedback Please email your feedback for publication, errors, omissions, broken/redirected link reports
and suggestions to improve this page to Roedy Green : feedback email
made with CSS
HTML Checked!
ICRA ratings logo
mindprod.com IP:[65.110.21.43]
Your face IP:[38.103.63.59] The information on this page is for non-military use only.
You are visitor number 4,675. Military use includes use by defence contractors.
You can get a fresh copy of this page from: or possibly from your local J: drive (Java virtual drive/mindprod.com website mirror)
http://mindprod.com/jgloss/mysql.html J:\mindprod\jgloss\mysql.html