Install mysql and mysql-workbench in ubuntu15.04

Source: Internet
Author: User

Install mysql and mysql-workbench in ubuntu15.04

This article describes how to install and use mysql in ubuntu and how to install and use mysql workbench. Mysql is an open-source database software, a product of Oracle, and a database software with good performance. Mysql workbench is an ER/database modeling tool designed for MySQL.

1. Install mysql

Here we will introduce the simplest way to install it through apt-get.

Installation command:
Sudo apt-get updatesudo apt-get install mysql-server mysql-client installation only requires setting the password of the root user.
Test after installation:

1. view the service status of mysql:

Peace @ peace-rong :~ $ Service mysql status ● mysql. service-MySQL Community Server # login: peace @ peace-rong :~ $ Mysql-u root-pEnter password: # enter the password Welcome to the MySQL monitor. Commands end with; or \ g.

2. Show all databases:

Mysql> show databases; + -------------------- + | Database | + -------------------- + | information_schema | -- mysql metadata, basic Data | day01 | -- this is my own database | mysql | -- mysql configuration database, which contains user information. (Username and password, permission management) | performance_schema | -- mysql database software running data, log information, performance data | test | -- test database. Null + -------------------- + 5 rows in set (0.00 sec) mysql>
2. Install mysql workbench

This section describes how to install the deb package.

Select the ubuntu platform.

Install

The simplest and most violent installation method is: Double-click it;

Or:

Sudo dpkg-I mysql-workbench-community-6.3.5-1ubu1504-amd64.deb if installation fails: apt-get-f install then re-enter the command sudo dpkg-I mysql-workbench-community-6.3.5-1ubu1504-amd64.deb
Test after installation:

1. Click Open directly:

2. Click the plus sign on the Right of mysql connection to add a connection: <喎?http: www.bkjia.com kf ware vc " target="_blank" class="keylink"> VcD4NCjxwPjxpbWcgYWx0PQ = "01" src = "http://www.bkjia.com/uploads/allimg/160109/04150361F-1.png" title = "\"/>

3. Right-click the connection you just created and click open connection: enter the password.

4. In the opened connection, you can enter SQL commands to operate the database, which is the same as the command line method;

The introduction is complete;
From a small shark peace.rlovep.com

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.