LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-19-2015, 02:25 PM   #1
ilesterg
Member
 
Registered: Jul 2012
Distribution: CentOS, SLES, RHEL, HP-UX, OpenSUSE Tumbleweed KDE
Posts: 504

Rep: Reputation: 54
MySQL 5.7 how to install correctly


Hi everyone!

I am trying to install MySQL from their website and I noticed that after installation, there's already a root password and I can no longer follow the user mysql_secure_installation step which is where I can add the root password for the database.

So I browsed here and there, and according to their documentation, a random password should have been created to the root home directory, but it is not.

Has anybody tried installing 5.7? I remember installing 5.6 months ago without this hassle.

I also tried alternative installation option, which is to install via yum repository, but this still happened.

Thanks.
 
Old 11-19-2015, 02:27 PM   #2
ilesterg
Member
 
Registered: Jul 2012
Distribution: CentOS, SLES, RHEL, HP-UX, OpenSUSE Tumbleweed KDE
Posts: 504

Original Poster
Rep: Reputation: 54
BTW, I am on CentOS.
Code:
[root@db ~]# uname -a
Linux db 3.10.0-229.20.1.el7.x86_64 #1 SMP Tue Nov 3 19:10:07 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
[root@db ~]# systemctl status mysqld
mysqld.service - MySQL Server
   Loaded: loaded (/usr/lib/systemd/system/mysqld.service; enabled)
   Active: active (running) since Fri 2015-11-20 02:13:59 PHT; 1h 12min ago
 Main PID: 3147 (mysqld)
   CGroup: /system.slice/mysqld.service
           3147 /usr/sbin/mysqld --daemonize

Nov 20 02:13:57 db systemd[1]: Starting MySQL Server...
Nov 20 02:13:59 db systemd[1]: Started MySQL Server.
[root@db ~]#
 
Old 11-19-2015, 02:46 PM   #3
ilesterg
Member
 
Registered: Jul 2012
Distribution: CentOS, SLES, RHEL, HP-UX, OpenSUSE Tumbleweed KDE
Posts: 504

Original Poster
Rep: Reputation: 54
Found it.

Code:
[root@db log]# grep "temporary password" mysqld.log
2015-11-12T17:30:20.817427Z 1 [Note] A temporary password is generated for root@localhost: b/!5(gZdyf<1
[root@masterdb log]# pwd
/var/log
[root@db log]#
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] simple mysql procedure, not working correctly Eppo Programming 1 09-27-2011 05:07 PM
MySQL backup cron job not executing correctly lakridserne Linux - Server 3 03-02-2011 10:10 AM
[SOLVED] Wicd won't install correctly/run correctly (64-bit Slackware 13) bgraybr Slackware 3 04-01-2010 07:57 PM
MySQL 5.0.67: Unable to install & run. Error /var/lib/mysql/mysql.sock' (2) peteyperson Linux - Server 2 03-04-2009 02:16 PM
MySQL Replication not working correctly? Ratclaws Linux - Software 0 06-20-2005 04:34 PM


All times are GMT -5. The time now is 04:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration