Preface Workbench is installed on one computer, and now you need to access the MySQL database on another Ubuntu server. However, access to MySQL is not allowed by default. Considering security issues, it is not suitable to use the root user to access MySQL. At this time we need to open the MySQL server and create a new user to access MySQL. 1. Open MySQL The mysql configuration file is in the /etc/mysql/my.cnf file. There is a line in it that says 2. Create a new mysql user (1) First, enter the MySQL database locally. (2) Create a user: (3) FLUSH PRIVILEGES; refresh the MySQL system permission related tables, otherwise access will be denied. Restarting the database can also achieve this effect 3. Restart the database Use the command 4. Use workbench to connect to the database The host name indicates the database IP address that needs to be connected The effect of successful connection Click to enter the page Note: You cannot access mysql in the Docker container environment in the Ubuntu server Summarize The above is the full content of this article. I hope that the content of this article can bring some help to your study or work. If you have any questions, you can leave a message to communicate. Thank you for your support of 123WORDPRESS.COM. You may also be interested in:
|
<<: Example of implementing dynamic verification code on a page using JavaScript
>>: Linux kernel device driver memory management notes
Table of contents How to operate Operation proces...
This article shares with you the detailed install...
1. Spring boot does not support jsp jar package, ...
The methods of installing nginx and multiple tomc...
Table of contents Get the content of the iframe o...
mktemp Create temporary files or directories in a...
On some websites, you can often see some pictures...
Before webpack packaging, we must ensure that the...
Since I installed the official version of IE8.0, ...
Table of contents 1. What is componentization? 2....
The installation process of MySQL 8.0 Windows zip...
Preface One of the functions of an interceptor is...
In this article, we will learn about the optimiza...
Table of contents 1. Introduction 2. The first me...
The first step is to prepare an icon making softwa...