Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How Remove database with special char ?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mathieu Chocat  
View profile  
 More options Nov 15 2012, 7:54 am
From: Mathieu Chocat <mcho...@gmail.com>
Date: Thu, 15 Nov 2012 04:54:32 -0800 (PST)
Local: Thurs, Nov 15 2012 7:54 am
Subject: How Remove database with special char ?

Hi,

After a mongodb crash on replicaset, mongo have create a database called
' t@ i ڷPfilemasterdb'  in _status web page is ' t@ i ڷP\u0007filemasterdb'
.

I've tried:

> use t@ i ڷPfilemasterdb
> db.dropDatabase()
And
> db.getSiblingDB(" t@ i ڷPfileadserver").dropDatabase()

Without success, i search for other method, i can't dump/restore this
mongodb replicaset.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dwight Merriman  
View profile  
 More options Nov 15 2012, 3:35 pm
From: Dwight Merriman <dwi...@10gen.com>
Date: Thu, 15 Nov 2012 12:35:31 -0800 (PST)
Local: Thurs, Nov 15 2012 3:35 pm
Subject: Re: How Remove database with special char ?

you could try something like this:

> var name = db.getMongo().getDBs().databases[2].name
> var bad_db = db.getSisterDB(name)

Another way: shut down the whole set (all its processes).  Delete the
datafiles for the junk database on all mongod locations of relevance.
 Restart.

Do all members of the replica set have the bad database?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mathieu Chocat  
View profile  
 More options Nov 19 2012, 5:40 am
From: Mathieu Chocat <mcho...@gmail.com>
Date: Mon, 19 Nov 2012 02:40:58 -0800 (PST)
Local: Mon, Nov 19 2012 5:40 am
Subject: Re: How Remove database with special char ?

> var name = db.getMongo().getDBs().databases[2].name
> var bad_db = db.getSisterDB(name)

I've tried this, but mongodb don't find the file on disk, in console drop
is Ok, in log nothing, but the database is not removed (may be because
special char has been replaced by '?' on disk since i've migrated mongo
2.0.7 => 2.2.1 and resync).

To delete the file, i don't know the reaction of mongo with a replicaset
(risk of crash with oplog replay or resync if i don't stop all the replica
and i can't stop all)

> Do all members of the replica set have the bad database?

Yes

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Sam Helman  
View profile  
 More options Nov 20 2012, 3:31 pm
From: Sam Helman <sam.hel...@10gen.com>
Date: Tue, 20 Nov 2012 12:31:07 -0800 (PST)
Local: Tues, Nov 20 2012 3:31 pm
Subject: Re: How Remove database with special char ?

What does "show dbs" output?  Additionally, how much data do you have in
your other dbs?  If you don't have a prohibitive amount of data, you could
mongoexport or mongodump every db except the bad one, and then delete the
data files and reimport them.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »