Saturday, December 15, 2018

MySql or Maria DB Service on CENTOS 7

MySql on CENTOS 7

# wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
# sudo rpm -ivh mysql-community-release-el7-5.noarch.rpm


# yum update -y
# yum install mysql-server -y
# systemctl start mysqld

# sudo mysql_secure_installation

# sudo grep 'temporary password' /var/log/mysqld.log


Note: If MySQL 5.7 was installed, you will need the temporary password that was created during installation. This password is notated in the /var/log/mysql.log file and can be quickly found using the following command.

Root login

# mysql -u root -p

Output

mysql>

No comments:

Post a Comment

Posts

test

Dear All, Today is my last day in the office. As I wrap up my time here, I express my deepest gratitude for the opportunity to work with suc...