by Marta Blasco.
Thanks for your answers.
I've read the links you have said and I think all is correct.
Exactly I can't understand the problem I've got. When I visit my moodle I can see courses, categories, teachers, ... this means I can access to moodle database. What I can't understand is why I can't login if I write the correct username and password.
Thanks