"MYSQL Must Know Must Know" Fourth Edition-Practical Record

Ready to work

Prepare a practical environment, such as installing software and creating a sample database

install software

Choose MySQL for the database. Here we use a super easy-to-use software to configure, avoiding the trouble of configuring the working environment at the beginning. Using XAMPP , the software includes MySQL and phpmyadmin tools similar to Workbench, which are needed here. The operation is based on the web side, and the software is also relatively green.
XAMPP internal appearance
Note that it is best to install the software in a root directory other than the C drive, such as D://xampp.
Open the software Tiida two Apache and MySQL. Click the MySQL Admin button to open the management interface. The operation is very easy, and there is also Chinese, so I won’t introduce it here.

Database establishment

The method of database establishment is provided on the website of the book : the book introduction page
There is such a paragraph of text to select the code corresponding to MySQL to download: MySQL version download link

Supporting Resources
Appendix A: Sample Table Scripts
Appendix A describes the database tables used in the examples in this book. You may download database tables or creation scripts here:
• Apache Open Office Base database
• Microsoft Access 2000, 2003 database
• Microsoft Access 2007, 2010, 2013 database
• IBM DB2 SQL scripts
• Microsoft SQL Server (and SQL Server Express) SQL scripts
• MySQL (and MariaDB) SQL scripts
• Oracle SQL scripts
• Oracle Express SQL scripts
• PostgreSQL SQL scripts
• SAS scripts (tested with SAS 9.2) created by Peter Lumb
• SQLite database

Create a new database named tysql in PHPmyadmin , and then execute the statement in create.txt in SQL.
Results of the
Paste data input sentence
The result is as follows
At this point, the database is created.
Then you can practice according to the code in the book.
Have fun typing code to learn SQL!
Appendix:
The relationship diagram of the database sample based on the code:
Diagram of database sample table

Guess you like

Origin blog.csdn.net/sinat_24866629/article/details/107570364