MMDT1146 PHP Programming
Week 6
Week 6 MySQL Notes:
MySQL Administrator Notes:
phpMyAdmin Notes:
General:
PHP My Admin video: Tech Learning Archive Sample zip file. Unzip to use. 1000 records compliments of Ryan Olsen. Create sample data www.generatedata.com. Government data sets www.data.gov. |
This article taken from Builder.com. Data stored in a database comes in all shapes and sizes. Some fields store only numbers, some only text, and others a combination of the two. Some databases also support specialized types: dates and times, binary strings and Booleans. Selecting from available data types to find the best match for your data is an important part of database design, because such type selection affects the efficiency and performance of your RDBMS. Therefore, it's extremely important to be fully aware of the options available to you in your RDBMS, and to select the most appropriate data type for your storage needs at the time of design itself. That's where this document comes in. It outlines the most important data types supported by MySQL, one of the most popular free RDBMS currently available, and describes when and how each should be used. It thus serves as a ready resource to help you in creating an optimal design for your databases.
For a complete list and detailed descriptions, see the MySQL manual. You should also read the article entitled Choosing the Right Type for a Column. |
Lab 6 This lab is to test your knowledge of being able to create a table in a MySQL database and populate it with data. You can do this by using phpMyAdmin that is available in cPanel for your website. Alternately you can use MySQL administrator running locally on your laptop and connecting to your remote database on your web server. http://tools.ridgewater.net. The name of your database will be in the format of "lastnfir_" which is the first 5 characters of your last name followed by the first 3 characters of your first name. MySQL users that you create will also be the same format. Example: database and usernames for Greg Smith would be "smithgre_". Create a database named "lastnfir_contactlist" Create a MySQL user named "lastnfir_cluser1" Create a table named "myContacts" Create these fields: Import the sample file so that you have at least 1,000 records. Add at least 5 more records by hand entry to your MyContacts table. Populate all the fields. Assignment is due 1 week from when it was assigned. 50% penalty if late.
|