Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

PHP

Can't enter SQL commands phpMyAdmin

Hi,

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:

Error

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.