similar to: Help - Overwrote database

Displaying 20 results from an estimated 20000 matches similar to: "Help - Overwrote database"

2005 Dec 26
0
Rake (default task) overwrites development database?
I changed the subject to be more appropriate. Any idea why the development database would be effected? On 12/26/05, Ryan Wood <ryan.wood-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > Hey all. Hope you can help with this. I was running "rake" to run > tests on my server we are setting up for production. I''m currently > entering all my data into the dev
2006 May 02
1
Tests just deleted my production Database!!! PLEASE
When you run your functional tests, rake wipes the "test" database clean and recreates it based on what is in the "development" database. Since it appears you are using the same database for both, that would explain why you lost your data. In addition, if you omit the data needed to access the development database you will get an error like you described, because
2006 May 02
1
Tests just deleted my production Database!!!
Sorry, in my haste I forgot to modify the subject. 5/2/06, "Christian R. Garner" <olus@digitalapathy.net>wrote: > > All assumptions aside, "rectest" and "salt" are usernames not > databases/schemas according to the pasted config. If they were in fact > different databases/schemas, this problem could never have happened. > While >
2006 Mar 30
2
database.yml and Dreamhost
I am unable to connect to my databases. Here is the error I am getting: MysqlError (Can''t connect to local MySQL server through socket ''/var/run/mysqld/mysqld.sock'' (2)): Here is my database.yml: # MySQL (default setup). Versions 4.1 and 5.0 are recommended. # # Get the fast C bindings: # gem install mysql # (on OS X: gem install mysql --
2008 Apr 28
3
connecting database with railo
i m not able to connect to database I am create my rails folder i get database.yml file in this format # SQLite version 3.x # gem install sqlite3-ruby (not necessary on OS X Leopard) development: adapter: sqlite3 database: db/development.sqlite3 timeout: 5000 # Warning: The database defined as ''test'' will be erased and # re-generated from your development database when
2006 Apr 03
2
Capistrano - how do I set up the database config?
My app is set up without database.yml in version control. I created a shared_path/config dir, and put database.yml in it. After I update the code, I want to link the app''s database.yml file to the shared config. So I added this task desc ''Copy the database config'' task :after_update_code, :roles => :app do run "ln -s #{shared_path}/config/database.yml
2011 Jul 15
1
Rails 3 app has strange behaviour with Mysql2 database
Hi, I have developed a little web app with a sqlite3 database in development environment. Now I switched over to mysql2 for production environment. At a first look everthing looks good! BUT, I have delayed_jobs that run methods in the background, where two nested active records were compared with "if hash1 == hash2", then it should just show whether they are the same or not. With
2011 Dec 22
0
Problems with database config and prepare_to method
In my production environment I have 1 server running as mainappserver ( ex. 10.10.10.10 ) ( Rails + Apache2 + Mysql ) and during heavy periods we startup a second application server that just handle the Rails application calls. The second application server ( ex. 20.20.20.20 ) connects to the mysql of the mainappserver as specified in the database.yml : production: adapter: mysql2
2011 Dec 10
2
Couldn't find database client: mysql, mysql5, mysql.exe, mysql5.exe. Check your $PATH and try again.
Greetings, I am trying to get MySQL to run with Rails, but when I try to get it to run using "rails dbconsole" I get this error: C:\IS410\Programs\sqltest3>rails dbconsole Couldn''t find database client: mysql, mysql5, mysql.exe, mysql5.exe. Check your $PATH and try again. I have MySQL installed, along with the MySQL driver. I read alot of posts in forums saying it might
2007 Oct 12
1
database configuration specifies nonexistent postgresql adapter
Hi I am trying to get RoR to work with Postgresql 8,2.5 (latest stable version) Steps taken 1. Download Postgresql 1.82 and installed successfully 2. Edited my Database.yml development: adapter: postgresql database: test_development username: postgres password: xxx host: localhost test: adapter: postgresql database: test_test username: postgres password: xxx host: localhost
2009 May 26
3
ruby and MySql
Hi there - new to RoR but very excited about it indeed - I have just manged to install everything. However, when I browse to http://localhost:3000/ then click the "About your application’s environment" - from the console I get : Status: 500 Internal Server Error no such file to load -- mysql Perhaps someone can tell from my configuration what is wrong ??? What I may be missing ??
2008 Jun 11
6
how to create new database to oracle ?
i have rails-2.1.0 my database.yml development: adapter: oracle database: pe username: or password: or >rake db:create >rake db:version --->Current version: 0 >rake db:migrate rake aborted! ORA-12154: TNS:could not resolve the connect identifier specified (See full trace by running task with --trace) is above idea is possible, then how ? and i thing i should give service
2006 Jun 26
1
Rake + SQL Server + Migrations == Errors. Help?!
Hello all, I''m trying to initialize my migrations against a current database implementation. rake db:schema:dump runs without error. The resulting schema.rb is pasted below, along with my database.yml Can one of you point me in the direction of enlightenment? -- ------------------------------ Apple MacBook. Black. It''s the new White! ------------------------------ Peter
2007 Dec 21
4
4.6 update overwrote my /usr/lib/python2.3/site.py file
We had some custom additions to our site.py file for a third party application. 'yum update' to 4.6 overwrote the file with no backup or warning. Not hard to repair, but it did have me worried there for a few minutes when the application failed to start. Is this a python issue, an upstream issue or a CentOS issue? Can something be done about it going forward? Jeff
2006 Jun 06
1
error: development database is not configured.
I''ve created a database using MySQL Admin and have set the user, password and have granted the privilgeges. but when I run (under dev.../trunk/www): rake migrate --trace, I get the following error msg: ** Invoke migrate (first_time) ** Invoke db:migrate (first_time) ** Invoke environment (first_time) ** Execute environment rake aborted! development database is not configured
2005 Dec 02
3
yaml Error When Trying to Generate Scaffold
Hello there, I am a Ruby on Rails newbie, and have been reading the book, "Agile Web Development with Rails", by Dave Thomas. Seem to be stuck on page 57, when trying to invoke "ruby script/ generate scaffold Product Admin"... My depot/config/database.yml file''s contents are: development: adapter: mysql database: depot_development socket:
2008 Apr 23
4
database.yml, what to change?
exactly what do i need to change? i should set username and password to whatever i want? or username should be root? what exactly do i need to change/set up? """ You then need to edit the database.yml file (in any text editor) to properly link to your database etc. This file can be found in the ProjectName\config\ directory. You will be presented with something that looks like:
2006 Jan 16
3
the dreaded "Before updating scaffolding from new DB schema, try creating a table for your model (Blog)" error
Hi Can any one help me with this? I think that this is soemthing quite simple as there is quite abit traffic about this on the web and everyone sems to figure it out. I have tried most of the solutions that I can find. but nothing. I have mysql 5.0.11 working on linux redhat 9. ruby is working rails install mysql library seem to be there. to some trying rt get mysql to install need to
2006 Jan 07
1
Configuration problem on older app upgraded to 1.0
Hello, everyone. I have an application that began on a much earlier version of rails, and has been upgraded to 1.0. Somewhere along the line, tests got broken. The first thing I noticed, upon looking into the cause, is that my test database was not being cloned correctly from development. So, I tried to run the tasks by hand: $ rake clone_schema_to_test (in /Users/jkh/Development/assetstream)
2010 Aug 20
0
Problem with db:create
My ruby app always created the databases on postgres just fine, but, a days ago, I''ve tried to create a new project and when I execute the command "db:create:all" i got the following error: Couldn''t create database for {"encoding"=>"unicode", "username"=> "-my username-", "adapter"=>"postgresql",