Install and configure MySql in Ubuntu

Source: Internet
Author: User

Recently, I want to take over the online project of my new employee (running on Linux ).
No UI.
As a last resort, Linux, MySQL, and Java have been badly supplemented.

The installation in Ubuntu is very simple.
I have tried to install a binary package. No configuration is successful (you still need to try to install it later)

1. sudo apt-Get install msyql-server mysql-clinet
Install servers and clients respectively
The page for setting the root user password is displayed during installation.

2. If you want another MySQL user. Use the grant command to add a user.
Add the cuser with all permissions as follows.
(1) log on to MYSQL as the root user.
(2) grant all privileges on *. * To cuser @ '%' identified by 'cuser' with grant option
Later, exit MySQL and use the newly added user cuser to log on to msyql. Of course, you can use grant
This is just an example.

 

 

Appendix:

The apt-Get method in Ubuntu is indeed simple. Too many configurations are not required.

However, I always feel that the truth behind the installation is invisible.

We still need to try to fix binary installation configuration and source code installation.

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.