Re: Can't get the blog tutorial to work
On 6/12/07, kib2 [EMAIL PROTECTED] wrote: Hi, I'm new to Pylons and even more to DataBases. I followed your tutorial on how to make a basic blog with Pylons, but once I launch my app I've got the following errors : File 'C:\\Documents and Settings\\kib\\Bureau\\KIB\\blogtutorial\ \blogtutorial\\controllers\\blog.py', line 21 in list c.blogPosts = list(model.BlogPosts.select()) File 'c:\\python25\\lib\\site-packages\\SQLObject-0.9.0-py2.5.egg\ \sqlobject\\sresults.py', line 165 in __iter__ return iter(list(self.lazyIter())) File 'c:\\python25\\lib\\site-packages\\SQLObject-0.9.0-py2.5.egg\ \sqlobject\\sresults.py', line 173 in lazyIter return conn.iterSelect(self) File 'c:\\python25\\lib\\site-packages\\SQLObject-0.9.0-py2.5.egg\ \sqlobject\\dbconnection.py', line 399 in iterSelect return select.IterationClass(self, self.getConnection(), File 'c:\\python25\\lib\\site-packages\\SQLObject-0.9.0-py2.5.egg\ \sqlobject\\dbconnection.py', line 264 in getConnection conn = self.makeConnection() File 'c:\\python25\\lib\\site-packages\\SQLObject-0.9.0-py2.5.egg\ \sqlobject\\mysql\\mysqlconnection.py', line 76 in makeConnection e, self.host, self.port, self.db, self.user, self.password) OperationalError: (1045, Access denied for user 'kib'@'localhost' (using password: YES)); used connection string: host=localhost, port=3306, db=blogtutorial, user=kib, pwd=kib This is the first time I use MySQL , I was never asked to give a username during the installation process (on Windows). I was only asked for a password. Did I miss something ? Thanks a lot, cheers Kib It's telling you your password is wrong. Try using 'root' as your username and the password you gave as your password. Also, you may want to star out the user and pwd fields in the stack trace. Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Can't get the blog tutorial to work
On Tue, Jun 12, 2007 at 05:34:47AM -0700, kib2 wrote: I'm new to Pylons and even more to DataBases. I followed your tutorial on how to make a basic blog with Pylons, but once I launch my app I've got the following errors : File 'C:\\Documents and Settings\\kib\\Bureau\\KIB\\blogtutorial\ \blogtutorial\\controllers\\blog.py', line 21 in list c.blogPosts = list(model.BlogPosts.select()) File 'c:\\python25\\lib\\site-packages\\SQLObject-0.9.0-py2.5.egg\ \sqlobject\\sresults.py', line 165 in __iter__ return iter(list(self.lazyIter())) File 'c:\\python25\\lib\\site-packages\\SQLObject-0.9.0-py2.5.egg\ \sqlobject\\sresults.py', line 173 in lazyIter return conn.iterSelect(self) File 'c:\\python25\\lib\\site-packages\\SQLObject-0.9.0-py2.5.egg\ \sqlobject\\dbconnection.py', line 399 in iterSelect return select.IterationClass(self, self.getConnection(), File 'c:\\python25\\lib\\site-packages\\SQLObject-0.9.0-py2.5.egg\ \sqlobject\\dbconnection.py', line 264 in getConnection conn = self.makeConnection() File 'c:\\python25\\lib\\site-packages\\SQLObject-0.9.0-py2.5.egg\ \sqlobject\\mysql\\mysqlconnection.py', line 76 in makeConnection e, self.host, self.port, self.db, self.user, self.password) OperationalError: (1045, Access denied for user 'kib'@'localhost' (using password: YES)); used connection string: host=localhost, port=3306, db=blogtutorial, user=kib, pwd=kib This is the first time I use MySQL , I was never asked to give a username during the installation process (on Windows). I was only asked for a password. Please consult the MySQL documentation on access privileges: http://dev.mysql.com/doc/refman/5.1/en/privilege-system.html Christoph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---
Re: Can't get the blog tutorial to work
Ok, thanks I managed to get it work now. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups pylons-discuss group. To post to this group, send email to pylons-discuss@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~--~~~~--~~--~--~---