<?php /** * The development database settings. */ return array( 'default' => array( 'connection' => array( 'dsn' => 'mysql:host=localhost;dbname=db_name', 'username' => 'root', 'password' => 'root', ), ), );
David Wilkins wrote on Friday 16th of December 2011:Hey if you still want a working example of the tutorial I can email you one, let me know. As for your error, no idea. Here is my development db config file that works for me (fuel/app/config/development) (obviously I changed the password and username, but you get the idea), maybe something got changed when you set it up?<?php /** * The development database settings. */ return array( 'default' => array( 'connection' => array( 'dsn' => 'mysql:host=localhost;dbname=db_name', 'username' => 'root', 'password' => 'root', ), ), );
Doubt it's affecting your issue, but as a heads up when I went through the tutorial there was a problem with my mySQL database being in strict mode, and I had to change that for part of the tutorial to work. Although now that I think about it I actually think it may not have been the problem and it ended up being something else, something with creating the user and the hash syntax wasn't right, maybe I made a typo, I can't remember. But if you do get a weird error at some point about invalid syntax, that might help. EDIT: just went back and checked, definitely was a problem with db being in strict mode. again, not the issue you are on now but a heads up
Harro Verton wrote on Saturday 17th of December 2011:I don't think this is an issue. The Auth::create_user() method is built for use in a web application, not to be used on the commandline. Your second error indicates it has done it's thing... It could be dealt with by adding checks to every statement that could produce output to see if you're in CLI mode, but that would make the code a lot slower, while most of it will never be called from the commandline.
It looks like you're new here. If you want to get involved, click one of these buttons!