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

PHP PHP & Databases with PDO Getting Started With PDO Introductions

"Error: Unknown Command or Invalid Arguments: "open"

When following and at the part to ".open database.db" I get the error message "Error: Unknown Command or Invalid Arguments: open".

3 Answers

Barrett Alley
Barrett Alley
1,099 Points

Try entering

sqlite3 database.db

as the first line you type in console. The video is outdated.

L B
L B
28,323 Points

Did you type sqlite3 in the console?

Felipe Caballero
Felipe Caballero
2,019 Points

Actually the sqlite3 version in the video is newer than what I have. My console says 3.7.17 and in the video the version is 3.8.2 . This might be the problem.