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 trial


Can't enter SQL commands phpMyAdmin


I'm using Debian(jessie). I created a database(Cars) using phpMyAdmin's Create database function. I'm following along a book "The Joy of php". After the table is created the author wants to create a table (INVENTORY) using SQL commands. Well, phpMyAdmin will not let me enter any text in the SQL query text area. I created the table using the Create table function(buttons). If I click on the INVENTORY table in the left window-pane or the tab above I get the following error message:


SELECT 'prefs' FROM 'phpmyadmin' . 'pma__table_uiprefs' WHERE 'username' = 'jeff' AND 'db_name' = 'Cars' AND 'table_name' = 'INVENTORY'

MySQL said:

#1146 - Table 'phpmyadmin.pma__table_uiprefs'
doesn't exist

If I click on columns under INVENTORY or the Structure tab above I can view the table and columns. Also when I click on the SQL tab I can view the table columns in the right-hand pane and the number 1 appears in the SQL command text field. If more information is needed please let me know.

Thanks, Jeff

2 Answers

Hi Jeremy,

I believe I am working in Cars database. Here is a screen-shot: phpMyAdmin

Jeremy Germenis
Jeremy Germenis
29,854 Points

Looks like your trying to work within phpmyadmin's database. You need to switch to your cars database you created.