Solution to the problem that the server cannot remotely connect to the database when installing the Pagoda Panel

Solution to the problem that the server cannot remotely connect to the database when installing the Pagoda Panel

I am planning to build my own website, so I took advantage of the 618 promotion and bought a Linux server from Tencent Cloud. The configuration is generally good and the price is reasonable. Because I don’t know much about servers, I chose to use a graphical interface panel for management. Because I learned about the Baota panel through Alibaba Cloud before, I installed the Baota Linux panel on the server.

After configuring the relevant environment in Baota, I installed the website program. I encountered problems when installing the program. I will post an article to explain the solution later. Because I am still in the learning stage of Django, I chose the zblog program that I was familiar with before to build it. Because I am preparing to build websites in multiple aspects, the website I build at this time is intended to be a traffic site, and the website is mainly updated by crawlers to collect and store data, which also saves time.

Because I am not very familiar with phpmyadmin, I used Navicat locally to connect to the database remotely, but various problems occurred when connecting to the database. Because when logging in from the Baota backend, you enter the database directly. The login port of Baota's phpmyadmin is 888, and then you change the port to 888 when logging in. Later, when you try to log in, the database account and password are correct, but an error message appears and you cannot log in. Don’t be confused by the login port 888 of phpmyadmin. This is just the port for logging into phpmyadmin and entering the database, not the MySQL port. The MySQL port is still 3306. At this time, just change the port in Navicat to 3306.

But it doesn't end here, there are two more steps to set up:

Step 1: As shown in the figure, you need to modify the permissions from the database and change the conditions to allow everyone or your computer's local IP (specified IP);

Step 2: Select "Security", set the release port, fill in 3306 in the first corresponding position, write your own notes, and then click the "Release" button. You can also specify a range, such as 3000:3500.

After completing the above operations, it is best to return to the homepage and restart MySQL, then return to Navicat, enter the relevant configuration information, and the connection test will be successful.

This method may not be applicable to all situations. This article only checks whether the port is allowed. The MySQL database may not give the root account permissions. Please enter the MySQL database authorization.

# Authorize the root user to operate all databases on any IP address grant all on *.* to root@'%' identified by '123456' with grant option;
# Refresh database flush privileges;

This concludes this article on how to solve the problem that the Baota Panel cannot remotely connect to the database when it is installed on the server. For more information about the problem that the Baota Panel cannot remotely connect to the database, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Baota Panel successfully deploys Django project process (picture and text)
  • Baota Linux panel command list
  • Detailed tutorial on deploying Django project under CentOS
  • How to install ionCube extension using pagoda
  • How to install the Linux version of Baota Panel in a directory other than /www
  • Baota Linux Panel is a free Chinese Linux VPS host control panel suitable for fast website building

<<:  Element table header row height problem solution

>>:  Detailed explanation of the basic functions and usage of MySQL foreign keys

Recommend

The linkage method between menu and tab of vue+iview

Vue+iview menu and tab linkage I am currently dev...

Example operation MySQL short link

How to set up a MySQL short link 1. Check the mys...

The pitfall record of case when judging NULL value in MySQL

Table of contents Preface Mysql case when syntax:...

Implementation example of Docker rocketmq deployment

Table of contents Preparation Deployment process ...

Detailed explanation of replace into example in mysql

Detailed explanation of replace into example in m...

Detailed explanation of Vue px to rem configuration

Table of contents Method 1 1. Configuration and i...

React.js framework Redux basic case detailed explanation

react.js framework Redux https://github.com/react...

The qualities and abilities a web designer should have

Web design is an emerging marginal industry that c...

How to process local images dynamically loaded in Vue

Find the problem Today I encountered a problem of...

Detailed steps to install CentOS7 system on VMWare virtual machine

Pre-installation work: Make sure vmware workstati...

Introduction to the use of MySQL pt-slave-restart tool

Table of contents When setting up a MySQL master-...

How to run multiple MySQL instances in Windows

Preface In Windows, you can start multiple MySQL ...

How to modify the sources.list of Ubuntu 18.04 to Alibaba or Tsinghua mirror

1. Backup source list The default source of Ubunt...

VMware15.5 installation Ubuntu20.04 graphic tutorial

1. Preparation before installation 1. Download th...