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

Ronaldo Fialho
Ronaldo Fialho
5,105 Points

unkown command or invalid argument open

treehouse:~/workspace$ sqlite3
SQLite version 3.7.17 2013-05-20 00:56:22
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite> .databases
seq name file


0 main
sqlite> .open database.db
Error: unknown command or invalid arguments: "open". Enter ".help" for help
sqlite> .tables
sqlite>

Why this is happening?? Any help plz!

1 Answer

Umesh Ravji
Umesh Ravji
42,386 Points

Hi Ronaldo, there's a correction in the teachers notes regarding how to open the database.

Type sqlite3 database.db to open SQLite and the database that is discussed in this video. The .open command is not available in the version of SQLite available in Workspaces.