FLASK Project Structure (i) mariadb

Source: Internet
Author: User
Tags docker run

Brief introduction:

This article is mainly based on what you have learned, to create a flask project, using sqlalchemy,alembic,mariadb,bootstrap,apscheduler,selenium,request ... Technology, created and deployed in Docker.

Should be maintained on GitHub, as a blueprint for writing flask projects later.

One: Install MARADB. 1. Run mariadb in Windows.

http://www.haosql.com/, it is recommended to download a green version of mariadb here.

Haosql, useful SQL.
The purpose of this program is only one: to simplify the installation process of the database, fool.
Free Install green version, size only about 10M, decompression can, pure green; start with just one click.
With Control Panel, with SQL management tools. Support Service non-service mode startup.
Support database: MongoDB, MySQL, PostgreSQL, MSSQL2008, MSSQL2000, Firebird, MariaDB.

Http://pic.guoxuedashi.com/HaoSQL/MariaDB-HaoSQL.zip

Download unzip, run directly on it.

2. Running MARIADB in Linux

Look at my blog should understand, I almost do not configure the Linux server, but not here to post a large section of the code to give you configuration.

I use Docker, a line of command to solve.

docker run --name some-mariadb -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mariadb:tag
上面是官方给的例子
实际执行:
MYSQL_ROOT_PASSWORD=123456 -d mariadb
Two: Configuration mariadb

FLASK Project Structure (i) mariadb

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.