Close Menu
    DevStackTipsDevStackTips
    • Home
    • News & Updates
      1. Tech & Work
      2. View All

      Microsoft adds Copilot-powered debugging features for .NET in Visual Studio

      August 21, 2025

      Blackstone portfolio company R Systems Acquires Novigo Solutions, Strengthening its Product Engineering and Full-Stack Agentic-AI Capabilities

      August 21, 2025

      HoundDog.ai Launches Industry’s First Privacy-by-Design Code Scanner for AI Applications

      August 21, 2025

      The Double-Edged Sustainability Sword Of AI In Web Design

      August 20, 2025

      How VPNs are helping people evade increased censorship – and much more

      August 22, 2025

      Google’s AI Mode can now find restaurant reservations for you – how it works

      August 22, 2025

      Best early Labor Day TV deals 2025: Save up to 50% on Samsung, LG, and more

      August 22, 2025

      Claude wins high praise from a Supreme Court justice – is AI’s legal losing streak over?

      August 22, 2025
    • Development
      1. Algorithms & Data Structures
      2. Artificial Intelligence
      3. Back-End Development
      4. Databases
      5. Front-End Development
      6. Libraries & Frameworks
      7. Machine Learning
      8. Security
      9. Software Engineering
      10. Tools & IDEs
      11. Web Design
      12. Web Development
      13. Web Security
      14. Programming Languages
        • PHP
        • JavaScript
      Featured

      Preserving Data Integrity with Laravel Soft Deletes for Recovery and Compliance

      August 22, 2025
      Recent

      Preserving Data Integrity with Laravel Soft Deletes for Recovery and Compliance

      August 22, 2025

      Quickly Generate Forms based on your Eloquent Models with Laravel Formello

      August 22, 2025

      Pest 4 is Released

      August 22, 2025
    • Operating Systems
      1. Windows
      2. Linux
      3. macOS
      Featured

      FOSS Weekly #25.34: Mint 22.2 Features, FreeVPN Fiasco, Windows Update Killing SSDs, AI in LibreOffice and More

      August 21, 2025
      Recent

      FOSS Weekly #25.34: Mint 22.2 Features, FreeVPN Fiasco, Windows Update Killing SSDs, AI in LibreOffice and More

      August 21, 2025

      You’ll need standalone Word, PowerPoint, Excel on iOS, as Microsoft 365 app becomes a Copilot wrapper

      August 21, 2025

      Microsoft to Move Copilot Previews to iOS While Editing Returns to Office Apps

      August 21, 2025
    • Learning Resources
      • Books
      • Cheatsheets
      • Tutorials & Guides
    Home»Development»MongoDB Create Datbases and Collections

    MongoDB Create Datbases and Collections

    August 21, 2025

    MongoDB stores data in a Database → Collection → Document structure.

    Database → Like a container for collections (similar to a database in SQL).

    Collection → Like a table in SQL, it contains multiple documents.

    Document → A JSON-like object that stores actual data.

    Create a Database

    Create a Database

    use database_name

    If myDatabase doesn’t exist, it will create a new database.

    For checking the current database:

    db

    To show all databases:

    show dbs
    MongoDb Datbase Creation

    Create a Collection

    db.createCollection("collection_name") // syntax
    
    db.createCollection("students")

    This will create an empty collection named students.

    To view collections in the current DB:

    show collections

    The post MongoDB Create Datbases and Collections appeared first on PHPGurukul.

    Source: Read More 

    Facebook Twitter Reddit Email Copy Link
    Previous ArticleYou’ll need standalone Word, PowerPoint, Excel on iOS, as Microsoft 365 app becomes a Copilot wrapper
    Next Article Headless CMS: The Future of Websites

    Related Posts

    Development

    Preserving Data Integrity with Laravel Soft Deletes for Recovery and Compliance

    August 22, 2025
    Development

    Quickly Generate Forms based on your Eloquent Models with Laravel Formello

    August 22, 2025
    Leave A Reply Cancel Reply

    For security, use of Google's reCAPTCHA service is required which is subject to the Google Privacy Policy and Terms of Use.

    Continue Reading

    Researchers Details macOS Remote Code Execution Vulnerability – CVE-2024-44236

    Security

    CVE-2025-4706 – Projectworlds Online Examination System SQL Injection Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Microsoft Teams to block “unauthorized screen captures” — This new Prevent Screen Capture tool improves your privacy

    News & Updates

    CVE-2025-46647 – Apache APISIX OpenID-Connect Plugin Issuer Key Reuse Vulnerability

    Common Vulnerabilities and Exposures (CVEs)

    Highlights

    Community News: Latest PEAR Releases (03.10.2025)

    April 15, 2025

    Latest PEAR Releases: Log 1.14.5 Source: Read More 

    NTA CUET UG 2025 Results Declared 🎉 Find Results On These Sites!

    July 4, 2025

    CVE-2025-36004: IBM i Vulnerability Allows Privilege Escalation

    June 25, 2025

    Hardening Node.js Apps in Production: 8 Layers of Practical Security

    July 29, 2025
    © DevStackTips 2025. All rights reserved.
    • Contact
    • Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.