title: How to disconnect a realtime database from my app and use a new realtime database of a new project?
body: <p>This is my mainactivity code :</p>
  <pre><code>class MainActivity : AppCompatActivity() {
      lateinit var name:EditText
      lateinit var email:EditText
      lateinit var password:EditText
      lateinit var login:Button
      lateinit var databaseReference: DatabaseReference
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
          setContentView(R.layout.activity_main)
  
          name=findViewById(R.id.name)
          email=findViewById(R.id.emailid)
          password=findViewById(R.id.password)
          login=findViewById(R.id.login)
          databaseReference=FirebaseDatabase.getInstance().getReferenceFromUrl(&quot;\n&quot; +
                  &quot;\n&quot; +
                  &quot;https://test2-3e833-default-rtdb.firebaseio.com/&quot;)
          login.setOnClickListener()
          {
              val name :String=name.text.toString()
              val email:String=email.text.toString()
              val password:String=password.text.toString()
  
              databaseReference.child(&quot;users&quot;).child(name).child(&quot;Email&quot;).setValue(email)
              databaseReference.child(&quot;users&quot;).child(name).child(&quot;password&quot;).setValue(password)
  
              Toast.makeText(this,&quot;Database write successful&quot;,Toast.LENGTH_SHORT).show()
              val a=Intent(this,LoginActivity::class.java)
              startActivity(a)
          }
      }
  }
  </code></pre>
  <p>I have added all dependencies and the JSON file and I want to change the real-time database of my app entirely to a new database of a new project in firebase. cause I did something wrong in the current realtime database.</p>
  <p>This is the logcat while launching the app :</p>
  <p><em><a href="https://test2-3e833-default-rtdb.firebaseio.com/" rel="nofollow noreferrer">https://test2-3e833-default-rtdb.firebaseio.com/</a>) passed to getReference().  URL was expected to match configured Database URL: <a href="https://test1-340e5-default-rtdb.firebaseio.com" rel="nofollow noreferrer">https://test1-340e5-default-rtdb.firebaseio.com</a>
  at com.google.firebase.database.FirebaseDatabase.getReferenceFromUrl(FirebaseDatabase.java:214)
  at com.example.realtimefirebasetest.MainActivity.onCreate(MainActivity.kt:26)
  at android.app.Activity.performCreate(Activity.java:8153)
  at android.app.Activity.performCreate(Activity.java:8137)
  at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1310)
  at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3698)
  ... 11 more</em></p>
  <p><strong>test 2 is the new database that I want to use and test 1 is the old database</strong></p>