[eluser]blackdog[/eluser]
Hello everyone, i'm trying to follow the tutorials for learning the basics of CI but i got a problem in connecting to the database.
I searched the forum, found a topic with similar problem but no one seems to have my same configuration, plus it's months old and no one replied the last question, so seemed right to open a new one.
I'm working on a Mac with MAMP as a server and mysql as db.
A friend of mine taught me how to configure a virtual host
"to work more professionally".
So i have CI and the wannabe-test-app in:
users/blackdog/[...]/igniter_test/
while the database is under
[...?]/applications/mamp/db/mysql/igniter_test
when i come up to configuring the database.php i simply change the name, but nothing happens. i change the username parameter to:
$db['default']['username'] = "root@localhost";
because in phpmyadmin front page it says: "User: root@localhost", but still i get an error in selecting the db.
I thought that maybe was the "_" causing problems, so i changed the db_name from "igniter_test" to "test", because i had created one in the past.
It conncets to it
BUT
if i change the name of the original db "igniter_test" to "igniter" or "igniterTest", i still get an error, so i don't think it's the underscore.
I think it's something with the paths or romething like that, caused by the fact that CI libraries are in the virtual host folder and the db under the localhost.
In fact if i try to work with the "test" db already exsiting, i manage to connect to the table with the scaffolding
BUT
when i try using to add a record with it, i get an error
Not Found
The requested URL //spublic/index.php/blog/database/add was not found on this server.
Apache/2.0.59 (Unix) PHP/5.2.3 DAV/2 Server at igniter_test Port 80
Someone has an idea of what i have to fix?