Install mysql under Ubuntu 16.04

System information (lsb_release -a)
Distributor ID: Ubuntu
Description: Ubuntu 16.04.2 LTS
Release: 16.04
Codename: xenial

  1. Check whether it is installed: sudo netstat -tap | grep mysql
  2. Install mysql: sudo apt-get install mysql-server mysql-client //server + client
  3. Y - Enter password - Confirm password
  4. Start the mysql service: sudo service mysql start
  5. Test whether the installation is successful: sudo netstat -tap | grep mysql
  6. Local connection: mysql -u root -p type the password

Remote access settings##

1. Binding wildcard address 0.0.0.0

Necessary steps. If there is an error mysql.service failed because the control process exited with error code, check whether the path is correct. The paths of some articles seem to be different, maybe the system/version is different

  1. sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf modify bind-address=127.0.0.1 to bind-address=0.0.0.0
  2. Restart mysql service sudo service mysql restart
    Demonstration of bug fixes (I already did the second step when recording the gif)

2. Modify the client IP that can be connected remotely

  1. Query whether the host value of the root user is correct (host column is the ip specified for login) select user, host from user where user='root';
  2. Modify host to '%', % in the host column is a wildcard. After modifying to %, all IPs can be accessed. You can also specify the IP segment like this: 192.168.1.%
  3. flush privileges; //Refresh MySQL system privilege related tables
    Error repair demo

If it is not set, an error message will be displayed: 1103 -Host '192.168.1.233' is not allowed to connect to this MySQL server

Related

Client tool navicat download###

Download link: http://pan.baidu.com/s/1qXKpZgK

. Net connection mysql connection string###

Server=192.168.1.233;Database=testdb;Uid=root;Pwd=123456;charset=utf8;pooling=true;

Recommended Posts

Install mysql under Ubuntu 16.04
Install MySQL under Ubuntu
Install MySQL under Ubuntu 18.04 (graphic tutorial)
Install apache+PHP under Ubuntu
Install node.js under Ubuntu
Install python3.6 under Ubuntu 16.04
Install mysql5.7 under CentOS7
Install Thrift under ubuntu 14.10
Install OpenJDK10 under Ubuntu
Install Caffe under Ubuntu 14.04
Install mysql on Ubuntu 14.04
2018-09-11 Install arduino under Ubuntu
Ubuntu19 install MySQL pit
Install mysql under Centos 7
Install ROS under ROS Ubuntu 18.04[2]
Install mysql5.1 under CentOS6.5
Install Yarm-PM2 under Ubuntu
Install MySQL under Linux (CentOS 7)
Install Mysql offline on Ubuntu
Install server-side Shadowsocks under Ubuntu 16.04
Install rgl package under Ubuntu
How to install MySQL on Ubuntu 20.04
How to install MySQL on Ubuntu 20.04
Install and configure MySQL on Ubuntu
Install 3 single-cell R packages under Ubuntu
How to install mysql in Ubuntu 14.04
Install and deploy Gerrit under Ubuntu
Install JDK1.8 original under Ubuntu Kylin
Small tool: install screenshot tool under ubuntu
Install nodejs and npm under Ubuntu 16.04
Ubuntu install MySQL password initialization problem
How to install mysql in Ubuntu 14.04
How to install MySQL on Ubuntu 14.04
How to install Audacious under Ubuntu
How to install Tensorflow under ubuntu 16.04
Compile and install QEMU under Ubuntu
CentOS7.2 install Mysql5.7.13
CentOS7 install MySQL
ubuntu18.04 install python2
ubuntu18.04 install docker
ubuntu12.04 install python3
Ubuntu install guide
ubuntu install nodejs
ubuntu 16 install asp.net
ubuntu install leanote
CentOS install mysql
ubuntu install Jenkins
CentOS7 install mysql
CentOS 7 install MySQL 5.6
docker install ubuntu
ubuntu install elasticsearch
CentOS8 install MySQL8.0
CentOS7 install mysql8
Ubuntu14 upgrade MySQL
CentOS7 install MySQL8
ubuntu16.0.1 install pagoda
ubuntu18.04 install python
centos 7.5 install mysql5.7.17
ubuntu 18.04 install teamviewer
ubuntu install sendmail
Install linux (ubuntu) dual system under windows system