The second method that say that you can repair your database table from phpadmin is more suitable for me but if i am developing a new system for someone else then it is always better to place a code inside wp-config.php file. Nice share sarah