How to install MySQL in the Baota panel Docker environment for AnQiCMS usage?

Calendar 👁️ 105

AnQiCMS (AnQiCMS) is a high-performance, modular design and enterprise-grade feature-based, which quickly becomes a powerful assistant for small and medium-sized enterprises and content operation teams.It is committed to providing an efficient, customizable, and easily scalable content management solution. Whether you are building a corporate website, a marketing website, or managing multiple sites, AnQiCMS can handle it effortlessly.As the core of the content management system, the database plays a crucial role, responsible for storing and managing all the content and configuration of the website.

Deploying AnQiCMS in the Docker environment of Baota panel not only allows you to enjoy the lightness, isolation, and convenience brought by Docker, but also allows you to manage the interface intuitively through Baota panel, greatly simplifying the operation and maintenance work.How can you install and configure the MySQL database required for AnQiCMS in such an environment?This article will serve as your operation guide, taking you step by step.

PanelAdmin and Docker environment: The Foundation of Efficient Operation and Maintenance

First, we assume that you have successfully installed Baota Panel on the server.Baota Panel is a widely popular server operation and maintenance management tool, its powerful Docker manager is the key to deploying applications in the Docker environment.If you are using it for the first time, please make sure to find and enable the "Docker" feature in the left menu of the Baota panel.It is usually in the 'Panel Settings' under the 'Panel Menu Hide' option.

After the Docker feature is activated, we can embark on the journey of preparing the MySQL database for AnQiCMS.

Deploy MySQL Docker container: lay the foundation for data storage

AnQiCMS as an enterprise-level content management system requires a stable and reliable database to store the structure, content, and user data of the website.MySQL is the default and recommended database type. Installing MySQL in the Baota panel's Docker environment will make the entire process exceptionally simple.

  1. Enter the Docker manager and search for MySQLClick the "Docker" menu on the left side of the Baota panel to enter the Docker manager interface.Here, you will see an option for the 'Docker App Store'.Click to enter and type "mysql" in the search box. Press Enter to find the official MySQL mirror.

  2. Select the MySQL version and configureIn the search results, select the MySQL version you need to install. Here's a tip:

    • If your server memory is less than 2GB, it is recommended to chooseMySQL 5.6A version that has lower resource requirements and runs more smoothly.
    • If the server memory is sufficient (2GB or more), then chooseMySQL 5.7Or an updated version (such as 8.0) would be a better choice, as they provide more new features and performance optimizations. Be sure to check the box when installing.“Allow external access”Options. This is very important because the AnQiCMS container needs to connect to this MySQL container over the network.
  3. Get MySQL's root passwordThe MySQL container is installed, and the newly installed MySQL will be displayed in the list.Click the "Details" link next to it. In the pop-up details page, you will find the root user password for MySQL.Make sure to copy and keep this password safe, as we will need it later to establish the database connection during the installation of AnQiCMS.

Up to this point, the MySQL database has been ready in your Baota Docker environment, waiting for AnQiCMS to connect.

Install AnQiCMS Docker application and connect to the database

With a running MySQL container, we can now easily deploy AnQiCMS.

  1. Search for AnQiCMS in the Docker app storeSimilarly in the "Docker" manager of the Baota panel, click on "Docker App Store", and enter "anqicms" in the search box to search.

  2. Configure AnQiCMS installation informationFind AnQiCMS application in the search results, click the 'Install' button to enter the configuration interface. Here, you need to fill in some key information:

    • Website domainEnter the domain name you plan to use to access the AnQiCMS website, for example:www.anqicms.com.
    • Database nameThe default is usuallyanqicms. If you plan to deploy multiple AnQiCMS instances in the same MySQL container (such as multi-site management), please set one for each AnQiCMS instance.A unique database nameTo achieve data isolation.
    • Database password:This is the key!Please paste the root password you copied from the MySQL container details. AnQiCMS will use this password to connect to the MySQL database you deployed.
    • Port: Default is8001. If you plan to deploy multiple AnQiCMS Docker containers on the same server, please allocate a different, unused port for each container, for example8002/8003etc.
  3. Confirm and wait for installationAfter filling out, click the "OK" button. The Docker App Store will begin to download and deploy the AnQiCMS container.This process may take 1 to 5 minutes, please be patient until you see the installation successful prompt.

Publish your AnQiCMS website via reverse proxy

Docker containers typically run on internal network ports. In order for external users to access your AnQiCMS website via a domain name, we need to configure a reverse proxy.

  1. Create Reverse Proxy SiteGo back to the left menu of the Baota panel, click on the 'Website' function area, click 'Create Website'. Select the 'Reverse Proxy' type.

    • Main domainFill in the website domain you specified during the AnQiCMS installation and configuration, for example:www.anqicms.com.
    • Proxy addressFill inhttp://127.0.0.1:您的AnQiCMS容器端口For example, if your AnQiCMS container port is8001, then fill inhttps://en.anqicms.com.
  2. Complete site creationClick “Confirm” to complete the creation of the reverse proxy site.

First visit and initialization

Everything is ready now!

Enter the domain name you configured in your browser, for example:http://www.anqicms.com/. The system will guide you to the AnQiCMS initialization installation interface. Follow the prompts to set up the administrator account, password, and other information.

After completing the initialization, you can go throughhttp://您的域名/system/Visit the backend management interface. Please remember that the default backend account isadmin, and the default password is123456. After the first login, it is strongly recommended that you change these default credentials immediately to ensure website security.

Congratulations! Now, you have successfully deployed MySQL database and started your website in the Docker environment of Baota panel.


Frequently Asked Questions (FAQ)

  1. Why does AnQiCMS need to be installed separately in Docker environment, instead of being integrated directly into the AnQiCMS container?AnQiCMS is an enterprise-level content management system developed in Go language, pursuing high performance and scalability.Although Go language applications can integrate lightweight databases (such as SQLite), for enterprise-level applications, an independent MySQL database container can provide more powerful data processing capabilities, better data security, more flexible backup and recovery mechanisms, and superior concurrent access performance.Separate the database from the application, which also conforms to Docker's practice, where each container focuses on a single service, making it easier to manage and upgrade.

  2. What is the best version to choose when installing MySQL? What should I do if I forget the MySQL root password?The choice of MySQL version mainly depends on your server resources.If the server memory is less than 2GB, it is recommended to choose MySQL 5.6, as it has less resource consumption.If memory is sufficient, MySQL 5.7 or higher versions (such as 8.0) are better choices, they usually provide more new features and performance optimization.If you forget the MySQL root password, you can find your MySQL container in the Baota panel Docker manager, click "Details", and there will usually be an option to display or reset the root password on the details page.If not directly displayed, you can check the Baota panel or the MySQL official document, usually there are methods to reset the password by entering the container internally or modifying the configuration file.

  3. Can multiple AnQiCMS sites installed in the Docker of Baota panel share the same MySQL Docker container?It is absolutely possible. This is a major advantage of the Docker environment.When deploying each AnQiCMS Docker application, you only need to set a different "database name" for each AnQiCMS instance, but the database connection address (usually127.0.0.1) and root password can both point to the same MySQL Docker container.In this way, all your AnQiCMS sites will efficiently utilize the same MySQL service while maintaining the independence of their data at the database level.

Related articles

How to manually configure reverse proxy to solve the problem after the installation of AnQiCMS fails in aaPanel Docker?

## aaPanel Docker installation failed?Don't hurry, setting up manual reverse proxy is easy!Hello!As an experienced website operations expert, I know how important efficiency and stability are when deploying a website.AnQiCMS, with its high-performance architecture developed in Go language, rich and practical SEO features, and flexible content management capabilities, has become the preferred choice for many small and medium-sized enterprises and content operators.It is not only simple to deploy and efficient in operation, but also effectively guarantees website security.

2025-11-06

How is the installation process for deploying AnQiCMS Docker application with aaPanel one-click?

As an experienced website operations expert, I am well aware of the importance of efficient and stable website deployment for any content operation project.Especially at the moment, Docker container technology and integrated management panels like aaPanel have brought us unprecedented convenience.Today, let's delve into how to take advantage of the powerful features of aaPanel and easily achieve one-click deployment of AnQiCMS Docker applications.

2025-11-06

How to configure a reverse proxy site for AnQiCMS container deployed with Docker in 1Panel?

As an experienced website operation expert, I am happy to give you a detailed explanation of how to configure reverse proxy sites for AnQiCMS containers deployed in the 1Panel environment, so that your website runs professionally and efficiently. --- ## In 1Panel, configure reverse proxy for AnQiCMS container deployed using Docker: Get your website up professionally!

2025-11-06

What are the detailed steps for installing AnQiCMS using 1Panel Docker?

As an experienced website operation expert, I am well aware of the importance of an efficient and easy-to-use content management system for both enterprises and individual operators.AnQiCMS (AnQiCMS) with its high performance brought by the Go language, rich SEO tools, and excellent multi-site management capabilities, has become the first choice of many users.When AnQiCMS encounters a modern server operation and management panel like 1Panel, the ease of deployment has reached a new height.

2025-11-06

How to obtain and fill in the MySQL root password when installing AnQiCMS with Baota panel Docker?

## AnQiCMS Docker installation using Panel: Easily obtain and fill in the MySQL root password guide As an experienced website operations expert, I am well aware that how to efficiently and accurately handle database configuration is the key to success when quickly deploying a content management system.AnQiCMS (AnQiCMS) has won the favor of many small and medium-sized enterprises and self-media operators with its efficient and concise features based on the Go language.Installing AnQiCMS through the Docker container feature of Baota panel is undoubtedly an efficient way to achieve this goal. However

2025-11-06

What does it mean to reuse database information when adding a new site in the background of AnQiCMS deployed by Docker?

As an experienced website operations expert, I am well aware that an efficient and flexible content management system is the key to a company's success in an increasingly complex network environment.AnQiCMS, with its high-performance architecture in Go language and multi-site management capabilities, has become a powerful assistant for many operators.Especially when combined with container technologies like Docker, the convenience of deploying and managing websites is greatly enhanced.

2025-11-06

How AnQiCMS v2.x users can smoothly upgrade to v3.x version?

How do users of the v2.x version of AnQi CMS smoothly upgrade to the v3.x version?Deep Analysis and Practical Guide As an experienced website operations expert, I am well aware of the importance of a stable and efficient CMS system for business.AnQiCMS (AnQiCMS) has become a powerful assistant for many small and medium-sized enterprises and content operation teams with its efficient architecture in Go language and rich features.With AnQiCMS continuously iterating and upgrading, the v3.x version brings more powerful performance, simplified deployment, and a more unified management experience.

2025-11-06

What is the specific operation process for merging multiple sites during the upgrade from AnQiCMS 2.x to 3.x?

AnQi CMS, as a content management system favored by small and medium-sized enterprises and content operation teams, has been continuously evolving to provide more efficient and flexible services.The upgrade from version 2.x to 3.x is not just an update of the version number, but also brings optimization of the underlying architecture and a leap in multi-site management mode.For those who have deployed multiple sites in the 2.x period and wish to achieve unified and efficient merged deployment in 3.x, this is undoubtedly an important milestone.

2025-11-06