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 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.

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.