<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Anil Gehlot on Medium]]></title>
        <description><![CDATA[Stories by Anil Gehlot on Medium]]></description>
        <link>https://medium.com/@anilgehlot2000?source=rss-dd99acf4c9fe------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*l7GTl2Ze5EwTcOfg5wDxYQ.jpeg</url>
            <title>Stories by Anil Gehlot on Medium</title>
            <link>https://medium.com/@anilgehlot2000?source=rss-dd99acf4c9fe------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 18:37:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anilgehlot2000/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Automating Database Setup: A Guide to the Random Database Generator]]></title>
            <link>https://medium.com/@anilgehlot2000/automating-database-setup-a-guide-to-the-random-database-generator-2ab78750e80b?source=rss-dd99acf4c9fe------2</link>
            <guid isPermaLink="false">https://medium.com/p/2ab78750e80b</guid>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[database]]></category>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[python]]></category>
            <dc:creator><![CDATA[Anil Gehlot]]></dc:creator>
            <pubDate>Fri, 19 Jan 2024 05:54:17 GMT</pubDate>
            <atom:updated>2024-01-19T12:51:36.490Z</atom:updated>
            <content:encoded><![CDATA[<p>Creating and populating databases with realistic data can be a time-consuming and tedious task. Manual database setup, table creation, and data entry not only consume valuable development time but can also introduce inconsistencies and errors. This is specifically true for large and complex databases.</p><p>In addition to these challenges, various domains, including AI, data analysis and other critical areas, face specific issues related to the use of dummy data.</p><p>To address these problems, I present the “Random Database Generator”, a web-based tool that simplifies the database creation process. This project allows users to define database names, table structures, and automatically populate them with dummy data entries and eliminates inconsistencies.</p><h4><strong>What is the Random Database Generator?</strong></h4><p>Random-Database-Generator is a tool which is designed to automate the process of database creation. Anyone who needs to create databases immediately with dummy or fake data can use it very efficiently. This project solves the problem of manually creating and managing databases. This can save developers time and effort, and it can also help to reduce the risk of errors and inconsistencies. This can save developers time and effort.</p><h4><strong>How does Random Database Generator work?</strong></h4><p>Random-Database-Generator will allow users to specify the database name, table structure, and desired data types. The generator will then generate dummy data for each table, based on the user’s specifications.</p><p>The data that is generated can be realistic or unrealistic, depending on the settings of the generator. For example, a generator could be configured to generate random names, addresses, and dates. It could also be configured to generate more specific data, names, city name, colour name, age, contact, address and many more.</p><h4><strong>Prerequisites</strong></h4><p>Before you can use this project, make sure you have the following dependencies installed on your system :</p><ul><li>Python (3.x)</li><li>MySQL server</li></ul><h4><strong>Installing Python</strong></h4><p>You can download Python from the official website <a href="https://www.python.org/downloads/">Python.org</a> and follow the installation instructions for your specific OS.</p><h4><strong>Installing MySQL Server</strong></h4><p>Follow the official installation instructions for MySQL based on your OS:</p><ul><li><a href="https://dev.mysql.com/doc/mysql-installation-excerpt/5.7/en/linux-installation.html">MySQL Installation Guide for Linux</a></li><li><a href="https://dev.mysql.com/doc/mysql-installation-excerpt/5.7/en/macos-installation.html">MySQL Installation Guide for macOS</a></li><li><a href="https://dev.mysql.com/doc/mysql-installation-excerpt/5.7/en/windows-installation.html">MySQL Installation Guide for Windows</a></li></ul><h4><strong>Getting started :</strong></h4><ul><li>To use this project clone this repository using Git : -</li></ul><pre>git clone https://github.com/Anil-Gehlot/Random-Database-Generator</pre><ul><li>Navigate to the Project Directory :-</li></ul><pre>cd Random-Database-Generator</pre><ul><li>Open config.py and change the credentials according to your MySQL database :-</li></ul><pre># Define your MySQL database configuration<br>db_config = {<br>&#39;host&#39;: &#39;&lt;--Enter your hostname--&gt;&#39;,<br>&#39;user&#39;: &#39;&lt;--Enter your username--&gt;&#39;,<br>&#39;password&#39;: &#39;&lt;--Enter your password--&gt;&#39;<br>}</pre><p><strong>Install Python Modules : <br></strong>Once you have Python and MySQL installed, you’ll need to install Python modules required for this project. Open your terminal and run the following command :</p><pre>pip install -r requirements.txt</pre><p><strong>Run the Application :</strong></p><pre>flask --app app.py run</pre><p>This will start the Flask development server, and you can access the Random Database Generator application in your web browser at <a href="http://localhost:5000/">http://localhost:5000</a>.</p><p>When you follow the given link , you will see a web page :-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n-VhyzpdGSNRsAfXQeo2Gw.png" /></figure><p>In this page select option of MySQL, then you will be rendered on another page :-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/438/0*6-R3xByIabTF0MXk" /></figure><p>In the given fields you have to fill in the database name and an integer number that tells how many tables you want to create in this database.</p><p>After filling the fields when you click on create tables, you will be rendered on another page :-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JbGEpkjIT6gz1sL2vldXiQ.png" /></figure><p>In this page you will see a field for table name and column details, here you have to fill table name and column details.</p><p>In table name you have to just fill the table name, but while filling the column details you have to understand how to write column details:</p><ul><li>Firstly you have to write column_name and then it’s datatype and then it’s primary key or unique if it is. All are separated by a colon (“ : ”).<br>If you have more than one column then separate them by comma (“ , ”) and then again write column_name and then it’s datatype and then it’s primary key or unique if it is. All are separated by colon ( “ : ”) and so on.<br>You can use only <strong>int</strong>, <strong><em>bigint</em></strong>, <strong>date</strong>, <strong>bool</strong>, <strong>varchar</strong> and <strong>char</strong> datatype now.</li></ul><pre>Syntax:  id : int : primary key, name : varchar(34), contact : bigint</pre><ul><li>If you have to make foreign key in any tables then after writing all details of column put a “ , “ and follow the below syntax:</li></ul><pre>Syntax:  foreign key ( column_name1 ) references table_name ( column_name2 )</pre><p>Each word in syntax is separated by space.</p><p>At the place of column_name1 you have to write column_name of the current table column name which you want to make foreign key.</p><p>At the place of column_name2 you have to write column_name of another table column name which is the primary key in another table.</p><p>Both columns ( column_name1, column_name2 ) must have the same data type.</p><ol><li>After filling the all tables column details , when you click on “submit table details”, you will see a web page like below:</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/0*m5Xn-ND_0kqUaQQX" /></figure><p>If the column details are fully right you will see a web page like this, it means all tables created successfully, if any kind of error occurs, means you have given wrong column details.</p><p>If all tables are created successfully, then go to MySQL and check your database created and all the tables are filled with dummy data.</p><p>For more details you can refer this git repository :<br><a href="https://github.com/Anil-Gehlot/Random-Database-Generator">https://github.com/Anil-Gehlot/Random-Database-Generator</a></p><h4><strong>Conclusion</strong></h4><p>In this blog post, we’ve delved into the MySQL integration of the Random Database Generator. For a comprehensive understanding of how the tool operates with MongoDB and PostgreSQL, I encourage you to explore the blogs crafted by our dedicated contributors, Harsh Yadav and Lokesh Dangi.</p><p>The Random Database Generator can be a valuable tool for anyone who needs to create databases quickly and easily. It can be used to generate fake data for testing purposes, or to create databases for real-world applications.</p><blockquote>If you have any feedback on the Random Database Generator, or if you have any suggestions for new features, please feel free to leave a comment below. I am always looking for ways to improve the project.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2ab78750e80b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>