If Not True Then False

Install MySQL 5.7/8.0 on Fedora 27/26, CentOS/RHEL 7.4/6.9 - Comment Page: 10

Are you looking MariaDB 10.2/10.1/10.3 Install guide? MySQL is a relational database management system (RDBMS) that runs as a server providing multi-user access to a number of databases. This is guide, howto install or upgrade MySQL Community Server latest version 5.7 (5.7.20)/8.0 (8.0.3) on Fedora 27/26/25, CentOS 7.4/6.9 and Red Hat (RHEL) 7.4/6.9. This guide works of course with Oracle Linux...


Leave a Comment

Your email address will not be published. Required fields are marked *

Input your comment.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Input your name.


I am Sourbh.
I got output after 6th step.
******How to resolve it?******
****** Explain please ******

[root@Sourabh Sourabh]# /usr/bin/mysql_secure_installation

Securing the MySQL server deployment.

Enter password for user root:
Error: Access denied for user ‘root’@’localhost’ (using password: YES)
[root@Sourabh Sourabh]#

reply Reply

This is not working for me. After successful installation I encountered this :
[root@hostname~]# /etc/init.d/mysql start
-bash: /etc/init.d/mysql: No such file or directory
[root@hostname~]# service mysql start
Redirecting to /bin/systemctl start mysql.service
Failed to start mysql.service: Unit not found.

reply Reply

try use that command:

# service mysqld start

Should use mysqld instead of mysql

reply Reply

firewall-cmd –permanent –zone=public –add –port=3306/tcp
should change to
firewall-cmd –permanent –zone=public –add-port=3306/tcp

reply Reply
Uber Knight

How do I remove the randomly generated password?
“mysqladmin -u root password ”


“mysqladmin: connect to server at ‘localhost’ failed
error: ‘Access denied for user ‘root’@’localhost’ (using password: NO)’ “

reply Reply

Hi Uber Knight

You can change it using following alter user command:

ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';

First you have to of course login using random password from log.

reply Reply