8.1. MySQL Database8.1.1. Accessing the Database with the Command Line8.1.1.1. Prompts8.1.1.2. Commands8.2. Managing the Database8.2.1. Creating Users8.2.2. Creating a MySQL Database8.2.3. Table Manipulation8.2.3.1. Renaming a table8.2.3.2. Changing a column’s data type8.2.3.3. Adding a column8.2.3.4. Remove a column8.2.3.5. Deleting an entire table8.2.4. Using phpMyAdmin8.3. Backing Up and Restoring Data8.3.1. Copying Database Files8.3.2. The mysqldump Command8.3.2.1. Backing up8.3.2.2. Restoring a MySQL backup8.3.2.3. Working with other formats8.3.2.4. The mysqlimport command8.3.2.5. Backup best practices8.4. Advanced SQL8.4.1. Indexes8.4.1.1. When indexes are used8.4.1.2. Where to specify the index8.4.1.3. Multicolumn indexes8.4.2. Selecting Using the LEFT JOIN ON Clause8.4.3. Using Database Functions8.4.3.1. String functions8.4.3.1.1. Concatenation8.4.3.1.2. Concatenation with a predefined separator8.4.3.1.3. Calculate a string length8.4.3.1.4. Changing strings to upper- or lowercase8.4.3.1.5. Trimming and padding strings8.4.3.1.6. String location and position8.4.3.1.7. Cutting up strings8.4.3.1.8. Search and replace function8.4.3.2. Date and time functions8.4.3.2.1. Days, months, years, and weeks8.4.3.2.2. Hours, minutes, and seconds8.4.3.2.3. Dates and times arithmetic8.4.3.2.4. NOW function8.4.3.2.5. Formatting for display8.5. Chapter 8 Questions