Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialtzehuilee
19,911 PointsTable product_sizes doesn't exist when selecting the product_sku, size_id in phpmyadmin
So I copy, paste, and execute the SQL script that created the two tables product_sizes and sizes. I selected my database under name mikeshirts and it physically revealed the tables. In the course, I tried to ran the script:
SELECT product_sku, size_id FROM product_sizes WHERE product_sku = 108
All I received is an error stating that:
1146 - Table 'mikeshirts.product_sizes' doesn't exist.
What's strange the product_sizes table has already existed and I could actually browse and see the structure in phpmyadmin.
2 Answers
Jacob Horvat
14,281 PointsAre you sure it's product_sizes and not products_sizes?
shezazr
8,275 Pointsmaybe you created it under a different database? is this on treehouse or locally? either way try creating it again..
tzehuilee
19,911 PointsI rename the original database from "shirts4mike" to "mikeshirts". It's on my computer by the way.