GithubHelp home page GithubHelp logo

sql_project's Introduction

this is a project for ms-sql databases with help of python for data analysis

## Installation

Docker (optional) python sqlalchemy pandas

## get start

###Docker method Frist run docker container with mysql docker run --name mysql -e MYSQL_ROOT_PASSWORD=12345678 -d mysql:latest after that you need to know the ip of the docker container docker inspect mysql | grep IPAddress Ip address of you terminal hostname -I go to the docker container with bash docker exec -it mysql bash connect to mysql mysql -u root -p write the password 12345678 create a new user CREATE USER 'username'@'IPAddress' IDENTIFIED BY 'password'; change the ip address with the ip address of your terminal and change password and username as you like grant all privileges to the user GRANT ALL PRIVILEGES ON *.* TO 'username'@'IPAddress'; flush privileges FLUSH PRIVILEGES; you can now use the user to connect to the database in python notebook or any other program also terminal __ if it is not working try to change the ip address with % __ __ if it also not working stop the container docker stop mysql remove the container docker rm mysql docker run -p 13306:3306 --name mysql -eMYSQL_ROOT_PASSWORD=password -d mysql:latest ip address of the container will change to localhost __ ###sql server method install sql server on your machine https://dev.mysql.com/doc/mysql-getting-started/en/ connect to the database with the user you created in the installation (you may need to get the ip address of your machine to connect to python notebook) you can now use the user to connect to the database in python notebook or any other program also terminal


sql_project's People

Contributors

m10090 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.