Summary

Today you learned some fundamental and important techniques for building a MySQL database. You learned how to use the mysql client program, in both its interactive and batch modes. You saw how to pass it username and password information for authenticating that user to MySQL, a principle that you can now apply to all of MySQL's client programs.

For manipulating databases, you learned how to create, list, and drop databases, and you saw how to create, list, drop, and alter tables within them.

Finally, you looked at how to add, show, and drop indexes on your tables. You learned the syntax for doing these things within the CREATE TABLE and ALTER TABLE statements, and you saw some examples. In Day 9, you'll learn more about the various kinds ...

Get Sams Teach Yourself MySQL in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.