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

Łukasz Karbownik
Łukasz Karbownik
30,003 Points

.open database.db command does not work. It return "unknown command or invalid arguments".

.open database.db command does not work in the workspaces. It return "unknown command or invalid arguments".

Hi Łukasz Karbownik, can you add a link to the course/stage that this is related to so we can better help with your question/issue?

Nick Hooper
Nick Hooper
7,188 Points

I am also getting this error. The "open" command is not available in order to use the databases.db file.

https://teamtreehouse.com/library/php-databases-with-pdo/getting-started-with-pdo/introductions

Stage 1

1 Answer

Nick Hooper
Nick Hooper
7,188 Points

Found another post describing this same problem.

Here is a workaround:

Instead of typing "sqlite3" type "sqlite3 database.db" and the database will be available for use.