LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 07-30-2015, 03:53 PM   #16
shellyd34
LQ Newbie
 
Registered: Jul 2015
Posts: 12

Original Poster
Rep: Reputation: Disabled

This is my own personal PC, I am doing this for class. I am running fedora in VMware. should I delete that one and start over? That sucks because I am on lab 5 and will have to go back and do all the labs.
 
Old 07-30-2015, 03:54 PM   #17
shellyd34
LQ Newbie
 
Registered: Jul 2015
Posts: 12

Original Poster
Rep: Reputation: Disabled
I am logging off now. On my way to class. I will be back online in about an hour.
 
Old 07-30-2015, 03:58 PM   #18
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,034
Blog Entries: 23

Rep: Reputation: 3984Reputation: 3984Reputation: 3984Reputation: 3984Reputation: 3984Reputation: 3984Reputation: 3984Reputation: 3984Reputation: 3984Reputation: 3984Reputation: 3984
Quote:
Originally Posted by shellyd34 View Post
This is my own personal PC, I am doing this for class. I am running fedora in VMware. should I delete that one and start over? That sucks because I am on lab 5 and will have to go back and do all the labs.
You should be able to fix it without a reinstall. Since it is in a VM, you can create a second one in a VM just to get the log file permissions to use to fix the first one? Since you are learning it would be a useful learning experience - good for the real world where these things still happen!
 
Old 07-30-2015, 08:00 PM   #19
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,034
Blog Entries: 23

Rep: Reputation: 3984Reputation: 3984Reputation: 3984Reputation: 3984Reputation: 3984Reputation: 3984Reputation: 3984Reputation: 3984Reputation: 3984Reputation: 3984Reputation: 3984
I have had a short break to think about this, and hopefully offer some helpful advice to recover from the ownership change.

First of all, if you haven't done anything else, you are just one bad command deep and haven't removed or damaged anything, so you can probably recover if done carefully.

First of all, from your list of changes I would do the following steps:

Code:
chown -R root:root /var/log

chown root:utmp /var/log/wtmp (If it complains post error here)
I really have no idea about the anaconda, gpm and afew others, but lets go with root:root and just be alert for errors reported later or on next boot, and handle them when they arise. All things considered you may get off easy! But if possible I would still recommend comparing it to a clean installed VM.

OK, back to mysql - it appears to me still that mysql has never been initialized. Just to be ABSOLUTELY sure, what is the output of (as root, or with sudo)...

Code:
ls -l /var/lib/mysql

AND

tail /var/log/mysqld.log
After that we can set up your mysql safely.

Hope this helps - let me know what you find!

Last edited by astrogeek; 07-30-2015 at 08:02 PM.
 
Old 08-06-2015, 03:44 AM   #20
MfromH
LQ Newbie
 
Registered: Jul 2014
Distribution: openSuse 12.2, SLES11.3, RHEL 5,
Posts: 15

Rep: Reputation: Disabled
well, changing log owners was a bad mistake and I am not able to fix that, but the original problem was to start mysql.

using mysql_install_db on a existing database instance may be a bad mistake too, you might overwrite already existing data, at least in the mysql schema. Better check the data directory (usually /var/lib/mysql/data on newer versions), if there are directories like mysql, test, and maybe more containing your own data. You might also search for files ending with .frm, have a look at that place for further mysql structure.

If none can be found go on with mysql_install_db.

has mysql ever run before on this machine?

Last edited by MfromH; 08-06-2015 at 04:02 AM.
 
  


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
mysqld and selinux? cant start mysqld willc86 Linux - Software 1 04-11-2015 09:19 AM
[SOLVED] cannot start mysqld? michaelinux Slackware 3 03-24-2014 02:01 PM
[SOLVED] MySQL Start Problem::::socket '/var/run/mysqld/mysqld.sock' (2) arun-linux Linux - Software 6 11-29-2012 06:56 AM
mysqld failed. the error was: initializing MySQL database. avnat Linux - Newbie 5 03-18-2011 11:58 PM
Cannot start mysqld peace18 Linux - Newbie 1 03-09-2011 02:17 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:23 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
Open Source Consulting | Domain Registration