Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What is the default password format for CVM database

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

What is the default password format for CVM databases? Many novices are not very clear about this. In order to help you solve this problem, the following editor will explain it in detail. People with this need can come and learn. I hope you can gain something.

There is no uniform format for the default password of CVM database. Many cloud service companies' product systems with mysql database will have a root account and a random password. The new system will have a system description. After purchase, users need to log in to the mysql account in the CVM and change their password and remote access permissions.

Recently, there have been several cases in which the MySQL database was deleted, mostly for the mysql service or the server where the server allows access to the external network, the server password is too simple, and the website program uses the mysqlroot account permission when connecting, resulting in the website program being compromised by the black mysqlroot account password, emptying the database after being cracked by hackers, leaving only a warning table.

Forgot how to view and modify the password of the CVM database

Take the commonly used mysqld database as an example:

First, vim / etc/my.cnf

Add skip-grant-tables under [mysqld]

Restart the database service mysqld restart

You can log in to the database by directly entering mysql

Enter use mysql

Update user set password=password (reset password) where user=root

Refresh Settings flush privileges

Exit quit

Get rid of the skip-grant-tables that my.cnf first joined

Restart the database service mysqld restart

Log in to mysql-uroot-p with a new password

Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report