Welcome Guest, Not a member yet? Register   Sign In
Getting No Such Table error with Sqlite 3
#4

[eluser]johnnyForums[/eluser]
I figured this out. I was on Windows with PHP and trying to connect but instead it would create a new database. As documented by PDO if you try and connect to a database and it isn't there it will try and create the database. I was putting the wrong extension on my sqlite database .db instead of .db3. It was creating a new db and then trying to read that new database. After I put .dbe It worked fine. I did not use the wiki pdo stuff mentioned above, though. I did a straight PDO connection in my model and returned that into my controller. No activerecord.


Messages In This Thread
Getting No Such Table error with Sqlite 3 - by El Forum - 09-28-2010, 08:40 PM
Getting No Such Table error with Sqlite 3 - by El Forum - 09-29-2010, 12:16 AM
Getting No Such Table error with Sqlite 3 - by El Forum - 09-29-2010, 10:53 AM
Getting No Such Table error with Sqlite 3 - by El Forum - 09-30-2010, 06:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB