Get the App
SLTechnology News&Howtos  ›  Servers  › 

Illustration of the method of installing MySQL through SSH on CentOS VPS

Shulou Source: shulou.com Published: 2022-06-02 03:59:25 10月23日 Update

Enter yum install mysql-server

Press Y to continue

Installation is complete, set boot Mysql, enter chkconfig-- levels 235 mysqld on

Then start tomcat and type service mysqld start

After startup, log in to MYsql to set the password

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

At this point, the mysql installation is complete! Then create the database, first view the database with show databases;

Then use the create database database name; to create the database

Use the grant all privileges on database name. * to root@localhost identified by 'password'; assign users to the database you just created

The superuser root is assigned here, and the red area below is the database name.

Summary

The above is the illustration of the method of installing MySQL through SSH on CentOS VPS introduced by the editor. I hope it will be helpful to you. If you have any questions, please leave a message for me, and the editor will reply to you in time. Thank you very much for your support to the website!

Tags: Data database input password user assignment method following figure area question red website so far help support login Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple MySQL Shulou Tech Info Shulou Technology Docker