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
Using ajax to implement form submission without re...
Table of contents Tomcat Introduction Tomcat depl...
Table of contents 1. Dep 2. Understand obverser 3...
MySQL database too many connections This error ob...
Table of contents Preface Install vue-i18n Config...
This article shares the specific code of JavaScri...
REPLACE Syntax REPLACE(String,from_str,to_str) Th...
Table of contents Preface What is index pushdown?...
Preface Interceptor In some modern front-end fram...
This article mainly introduces how to integrate T...
This article mainly introduces an example of how ...
Table of contents 1.mysqldump Execution process: ...
1. Go to Vim's official website to download t...
Table of contents 1. Download the installation pa...
Preface I am used to writing less/sass, but now I...