How to install MySQL via SSH on a CentOS VPS

How to install MySQL via SSH on a CentOS VPS

Type yum install mysql-server

Press Y to continue

Installation is complete, set MySQL to start at boot, enter chkconfig --levels 235 mysqld on

Then start tomcat and enter service mysqld start

After the startup is complete, log in to MYsql and set the password

入set password for 'root'@'localhost' = password('12345678'); to set the password

At this point, mysql is installed! Then create a database, first use show databases; to view the database

Then use create database 數據庫名; to create the database,

Use grant all privileges on 數據庫名.* to root@localhost identified by ' 密碼'; assign users to the newly created database

The super user root is assigned here, and the red area in the figure below is the database name.

Summarize

The above is the graphic method of installing MySQL through SSH on CentOS VPS introduced by the editor. I hope it will be helpful to everyone. If you have any questions, please leave me a message and the editor will reply to you in time. I would also like to thank everyone for their support of the 123WORDPRESS.COM website!

You may also be interested in:
  • How to use ssh tunnel to connect to mysql server
  • Solution to slow intranet ssh/mysql login
  • Basic steps to use Mysql SSH tunnel connection

<<:  Basic commands for MySQL database operations

>>:  Calendar effect based on jQuery

Recommend

Tomcat server security settings method

Tomcat is an HTTP server that is the official ref...

vue+el-upload realizes dynamic upload of multiple files

vue+el-upload multiple files dynamic upload, for ...

MySQL 5.7 zip archive version installation tutorial

This article shares the installation tutorial of ...

How to simply encapsulate axios in vue

Inject axios into Vue import axios from 'axio...

CSS Transition expands and collapses elements by changing the Height

A common development need is that we want to coll...

Super detailed tutorial to implement Vue bottom navigation bar TabBar

Table of contents Project Introduction: Project D...

Token verification login in Vue project (front-end part)

This article example shares the specific code of ...

Basic JSON Operation Guide in MySQL 5.7

Preface Because of project needs, the storage fie...

Gojs implements ant line animation effect

Table of contents 1. Gojs Implementation 1. Drawi...

A method of hiding processes under Linux and the pitfalls encountered

Preface 1. The tools used in this article can be ...

Installation process of zabbix-agent on Kylin V10

1. Download the installation package Download add...