Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Re: Debug
Phlip
9/13/2007 9:43:00 AM
coolgeng coolgeng wrote:
> With the Rails, I build a project connecting the MySQL. But When I change
> the password access in database. I can not access in the project. Then I
> check the database.yml file. And change the username and password. But it
> does not work.
> So ......
> I do not know how to resolve this problem?
Can't see your code, so here's some generic tips:
Log into mysql the same way Rails would:
mysql -u my_name -pmy_password my_database
Next, if MySQL is on the same 'localhost' as your site, log in as root:
mysql -u root my_database
If that works, just use root, with no password, in the YML file.
Next, write unit tests, and direct them to another database in the same
server. Unit tests are how Rails projects "debug" their features.
Next, read the files in your log/ folder to see if any error messages
arrived there.
--
Phlip
http://www.oreilly.com/catalog/9780...
"Test Driven Ajax (on Rails)"
assert_xpath, assert_javascript, & assert_ajax
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Re: Debug
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password