Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # sudo yum install mysql-server
- Dependencies Resolved
- ===========================================================================================================================================================================================================
- Package Arch Version Repository Size
- ===========================================================================================================================================================================================================
- Removing:
- mysql-community-client x86_64 5.7.10-1.el7 @mysql57-community 109 M
- mysql-community-server x86_64 5.7.10-1.el7 @mysql57-community 652 M
- Transaction Summary
- ===========================================================================================================================================================================================================
- # sudo service mysqld start
- # ps -ef|grep mysql
- mysql 1371 1 0 22:17 ? 00:00:00 /usr/sbin/mysqld --daemonize --pid-file=/var/run/mysqld/mysqld.pid
- # sudo mysql_secure_installation
- // when password is required, I just type "enter key"
- service mysqld stop
- mysqld_safe --skip-grant-tables &
- mysql --user=root mysql
- update user set Password=PASSWORD('new-password') where user='root';
- flush privileges;
- exit;
- $ sudo systemctl start mysqld
- $sudo grep 'temporary password' /var/log/mysqld.log
- 10.744785Z 1 [Note] A temporary password is generated for root@localhost: o!5y,oJGALQa
- $ sudo mysql_secure_installation
- Securing the MySQL server deployment.
- Enter password for user root:
- $ mysql -u root -p
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement