Code Monkey home page Code Monkey logo

mssql-database's Introduction

MSSQL-Config

Table of Contents

Introduction

Welcome to the MSSQL-Config project repository! This project aims to provide a convenient and standardized way to configure and manage Microsoft SQL Server instances with Docker. I installed dependencies drivers for MSSQL on the container. Also, I used Apache as a webserver and a PHP code (QuickDbTest.php) for testing MSSQL Database.

Configuration

API

API directory includes Apache configs as a webserver and a Dockerfile for installing MSSQL drivers to connect to the database. You can use Nginx instead of Apache as a websever.

DB

DB directory includes config files for creating and configuring Microsoft SQL Server.

If you want to change the database name you should change db_example on db/setup.sql to your database name. On top of that you should change private const db on QuickDbTest.php to your database name.

On the other hand, to change the database password, you should change private const pass on QuickDbTest.php and SA_PASSWORD on docker-compose.yml.

Requirements

Step 1

OS: Linux all versions (Ubuntu recommended).

Step 2

Install Docker and docker-compose on your machine.

Usage

Clone project

git clone https://github.com/adel-bz/MSSQL-Config.git

Run project

cd MSSQL-Config
sudo bash launcher.sh

Stop project

sudo docker-compose down -v

Test

Write the below address on your browser:

http://127.0.0.1:4567/QuickDbTest.php

Or use the below command on your terminal:

curl http://127.0.0.1:4567/QuickDbTest.php

You must get a response like this:

<pre>
[
    {
        "congratulations": "Success!!!",
        "stars": "1"
    },
    {
        "congratulations": "You did it!!!",
        "stars": "2"
    }
]</pre>

Refrences

https://hub.docker.com/_/microsoft-mssql-server

https://gist.github.com/xenogew/3440d323b00e1d661966f2b2ca3ef64a

https://stackoverflow.com/questions/75631319/pecl-install-pdo-sqlsrv-make-fails-on-ddev-using-debian-11-missing-libltdl-la

mssql-database's People

Contributors

adel-bz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.