mysql workbench installation and configuration tutorial under centOS

mysql workbench installation and configuration tutorial under centOS

This article shares the MySQL Workbench installation and configuration tutorial for your reference. The specific contents are as follows

Step 0: Install MySQL

Before following the workbench, install mysql first. The instruction is

yum install mysql mysql-server mysql-libs mysql-server

The functions of each mysql package are:

“mysql for the client tools, mysql-server for the server and associated tools, and mysql-libs for the libraries. The libraries are required if you want to provide connectivity from different languages ​​and environments such as Perl, Python and others.”

The advantage of using the yum command to install is that it is more convenient, but the disadvantage is that the version installed by the yum command is generally slightly behind the latest version...

When the terminal prompts complete, it means the installation is complete. The mysql configuration file is installed to /etc/my.cnf, and the mysql server startup script is installed to /etc/init.d/mysqld

Official description:

"A sample configuration file is installed into/etc/my.cnf. An init script, to start and stop the server, will have been installed into/etc/init.d/mysqld."

The command to start the MySQL server is:

root-shell> service mysqld start

If you want to automatically start the MySQL server when centOS starts, you can use the command

root-shell> chkconfig --levels 235 mysqld on

After mysql and mysqlserver are installed, you can install workbench.

Step 1: Download the workbench installation file from the official website of MySQL

http://dev.mysql.com/downloads/mirror.php?id=412155

step2: After downloading, click to install

Double-click the downloaded file to install it

You will be prompted for additional packages to be installed, just click install.

It prompts you to enter a password, just enter the root password

After that, it will download the dependent packages by itself

step3: Open port 3306

Because mysql uses port 3306 by default, and centOS does not open this port by default, so you need to open it first. The command is

/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT

Save settings

/etc/rc.d/init.d/iptables save

Step 4: Find the installed program and run MySQL workbench

You can see MySQL workbench under application->programming

Create a new connection

Click store in Keychain to save the password.

Then just keep pressing OK until the connection is created.

You can see that we have created a new connection. Double-click to open the connection.

As you can see, the entire library is still empty and there is nothing in it.

At this point you can create a new database, or choose to import it.

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • MySQL WorkBench Management Operations MySQL Tutorial
  • How to use MySQL Workbench (picture and text)
  • Mysql Workbench query mysql database method
  • Mysql WorkBench installation and configuration graphic tutorial
  • MySQL Workbench download and use tutorial detailed explanation
  • MySQL and MySQL Workbench Installation Tutorial under Ubuntu
  • MySQL5.7+ MySQL Workbench installation and configuration method graphic tutorial under MAC
  • MySQL 5.7.17 and workbench installation and configuration graphic tutorial
  • Detailed explanation of the workbench example in mysql
  • Solution to Workbench not connecting to MySQL on Alibaba Cloud Server Ubuntu (tested)
  • Detailed explanation of MySQL Workbench usage tutorial

<<:  jQuery plugin to achieve carousel effect

>>:  How to implement interception of URI in nginx location

Recommend

How to bind domain name to nginx service

Configure multiple servers in nginx.conf: When pr...

Nginx request limit configuration method

Nginx is a powerful, high-performance web and rev...

Why do select @@session.tx_read_only appear in DB in large quantities?

Find the problem When retrieving the top SQL stat...

Some slightly more complex usage example codes in mysql

Preface I believe that the syntax of MySQL is not...

7 cool dynamic website designs for inspiration

In the field of design, there are different desig...

JavaScript Snake Implementation Code

This article example shares the specific code of ...

Detailed explanation of linux crm deployment code

Linux basic configuration Compile and install pyt...

MySQL data table partitioning strategy and advantages and disadvantages analysis

Table of contents Why do we need partitions? Part...

Four ways to switch tab pages in VUE

Table of contents 1. Static implementation method...

Summary of commonly used performance test scripts for VPS servers

Here is a common one-click performance test scrip...

Solve the problem of mysql data loss when docker restarts redis

Official documentation: So mysql should be starte...

Example usage of JavaScript tamper-proof object

Table of contents javascript tamper-proof object ...

Json string + Cookie + localstorage in JS

Table of contents 1.Json string 1.1Json Syntax 1....

JavaScript object built-in objects, value types and reference types explained

Table of contents Object Object Definition Iterat...

Native javascript+CSS to achieve the effect of carousel

This article uses javascript+CSS to implement the...