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

Installation methods and steps of mysql

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains the "mysql installation methods and steps", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "mysql installation methods and steps" bar!

The environment centos 7 installs the following four rpm mysql-community-client-5.7.23-1.el7.x86_64.rpm mysql-community-common-5.7.23-1.el7.x86_64.rpm mysql-community-libs-5.7.23-1.el7.x86_64.rpm mysql-community-server-5.7.23-1.el7.x86 installation 64.rpmMurb-Note: it may be necessary to uninstall the maridb package modification / etc/my.con:datadir=/ Data/mysqldatasocket=/var/lib/mysql/mysql.sock# Disabling symbolic-links is recommended to prevent assorted security riskssymbolic-links=0log-error=/var/log/mysqld.logpid-file=/var/run/mysqld/mysqld.piddefault-storage-engine=INNODBcharacter_set_server=utf8 closes Selinuxvi / etc/sysconfig/selinux and changes the line inside to SELINUX=disabled restart machine reboot initialization mysqld-- user=mysql-- datadir=/data/mysqldata-- initialize startup: systemctl start mysqld finds the generated temporary password through the file log-error=/var/log/mysqld.log The following A temporary password is generated for root@localhost: droomxlfxn password 7.H manually enter the password through mysql-uroot-p to enter the mysql to modify the password alter user 'root'@'localhost' identified by' 123456' Modify the relevant permissions grant all privileges on *. * to root@'%' identified by '123456permission; you can use it. Thank you for reading, the above is the content of "the installation methods and steps of mysql". After the study of this article, I believe you have a deeper understanding of the installation methods and steps of mysql, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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

Database

Wechat

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

12
Report