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

Sample code on how to implement page caching in vue mobile project

background On mobile devices, caching between pag...

Detailed explanation of CSS float property

1. What is floating? Floating, as the name sugges...

An example of using Lvs+Nginx cluster to build a high-concurrency architecture

Table of contents 1. Lvs Introduction 2. Lvs load...

Detailed steps for installing and debugging MySQL database on CentOS7 [Example]

This example requires downloading and installing ...

Vue scaffolding learning project creation method

1. What is scaffolding? 1. Vue CLI Vue CLI is a c...

Detailed explanation of MYSQL large-scale write problem optimization

Abstract: When people talk about MySQL performanc...

CSS3 custom scroll bar style::webkit-scrollbar sample code detailed explanation

The default scroll bar style in Windows is ugly, ...

How to express relative paths in Linux

For example, if your current path is /var/log and...

How to install MySQL 5.7.29 with one click using shell script

This article refers to the work of 51CTO blog aut...

Data Structure - Tree (III): Multi-way Search Tree B-tree, B+ tree

Multi-way search tree Height of a complete binary...

4 ways to view processes in LINUX (summary)

A process is a program code that runs in the CPU ...