Get the App
SLTechnology News&Howtos  ›  Database  › 

Mysql-community Community Edition installation

Shulou Source: shulou.com Published: 2022-06-01 18:38:29 10月03日 Update

1. Install mysqlrpm-ivh mysql-community-common-8.0.13-1.el7.x86_64.rpmrpm-ivh mysql-community-libs-8.0.13-1.el7.x86_64.rpmrpm-ivh mysql-community-client-8.0.13-1.el7.x86_64.rpmrpm-ivh mysql-community-server-8.0.13-1.el7.x86_64.rpm2. Initialize mysqld-- initialize# to get password grep "root@localhost" / var/log/mysqld.log | awk-F "'{print $NF}'# Save password echo-e" root\ t$ (grep "root@localhost" / var/log/mysqld.log | awk-F ""'{print $NF}') "> > / root/.mysql_passwd

3. Change the charset of mysql db to utf-8

Cat > > / etc/my.cnf

Tags: Permissions passwords data databases logs accounts success information again files status directories allocation management community Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi Linux Docker OPPO Reno MariaDB