LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 01:25 PM   #1
ilesterg
Member
 
Registered: Jul 2012
Distribution: Arch, CentOS, OpenSUSE Tumbleweed KDE
Posts: 531

Rep: Reputation: 56
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, 01:27 PM   #2
ilesterg
Member
 
Registered: Jul 2012
Distribution: Arch, CentOS, OpenSUSE Tumbleweed KDE
Posts: 531

Original Poster
Rep: Reputation: 56
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, 01:46 PM   #3
ilesterg
Member
 
Registered: Jul 2012
Distribution: Arch, CentOS, OpenSUSE Tumbleweed KDE
Posts: 531

Original Poster
Rep: Reputation: 56
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 04:07 PM
MySQL backup cron job not executing correctly lakridserne Linux - Server 3 03-02-2011 09:10 AM
[SOLVED] Wicd won't install correctly/run correctly (64-bit Slackware 13) bgraybr Slackware 3 04-01-2010 06:57 PM
MySQL 5.0.67: Unable to install & run. Error /var/lib/mysql/mysql.sock' (2) peteyperson Linux - Server 2 03-04-2009 01:16 PM
MySQL Replication not working correctly? Ratclaws Linux - Software 0 06-20-2005 03:34 PM


All times are GMT -5. The time now is 01:07 PM.

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