Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

default mysql LINUX user (ie named "mysql");

Posted on 2008-06-13
8
Medium Priority
?
362 Views
Last Modified: 2013-12-16
Hi, anyone know the initial password, or how to get it, for the LINUX user named "mysql" (setup by default by mysql on installation).

-or-

a solution in fedora to quickly change owner / group of 98 files.

Problem is, I copied over the data files from my database to this installation. Now owner is "root", and so mysql cant write to them I need to either login as user "mysql" and recopy or batch chown (think thats right command) all the files in that directory. When you change preferences on the folder it does give you the option to change files enclosed, but it is permissions only, not ownership.

Thanks.
0
Comment
Question by:thummper
  • 4
  • 3
8 Comments
 
LVL 40

Expert Comment

by:omarfarid
ID: 21782723
as root you set the password using

passwd mysql
0
 

Author Comment

by:thummper
ID: 21783086
yes, but if i change it mysql likely wont work (as it will try to use the old password) Im looking for a way to either:

find out what the password is

-or-

batch change owner of all the files in the folder
0
 
LVL 43

Expert Comment

by:ravenpl
ID: 21784472
There's no password at all(but not empty -> login is unavailable) by default for linux user mysql, and You should net set any.
Maybe You asking for default password for mysql's databse root password? It's empty.
0
Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

 

Author Comment

by:thummper
ID: 21786050
No, I am not asking for MySQL's root user, LINUX user, named "MySQL". If login is unavailable, then the other solution is needed, a way to change owner on 98 files. ie batch. It does, however, show a 5 digit password by default.
0
 
LVL 43

Expert Comment

by:ravenpl
ID: 21786136
> It does, however, show a 5 digit password by default.
What You mean?

> If login is unavailable, then the other solution is needed, a way to change owner on 98 files
chown -R mysql: /path/to/copied/directory # run as a root
0
 

Author Comment

by:thummper
ID: 21790579
sorry for the delay, been out a bit.

>> It does, however, show a 5 digit password by default.
>What You mean?
if I go (as rot) into the manage user interface it shows an existing password for the user "mysql" and shows the password as ***** (5 digits)

>chown -R mysql: /path/to/copied/directory # run as a root
GREAT! thanks, will this change the owner of the directory only or all files withiin it?
0
 
LVL 43

Accepted Solution

by:
ravenpl earned 2000 total points
ID: 21790962
5 stars means exactly nothing. No one is even able to decode length os the password from it's md5 hash.
Reref /etc/shadow file - the second field is the password. '*' or '!!' means password is locked (unset and not empty)

> chown -R
the '-R' means recursively, dir and anything within.
0
 

Author Comment

by:thummper
ID: 21796270
Sweet. thanks so much.
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my business, I use the LTS (Long Term Support) versions of Linux. My workstations do real work, and so I rarely have the patience to deal with silly problems caused by an upgraded kernel that had experimental software on it to begin with from a r…
You ever wonder how to backup Linux system files just like Windows System Restore?  Well you can use Timeshift in Linux to perform those similar action.  This tutorial will show you how to backup your system files and keep regular intervals. Note…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
Suggested Courses
Course of the Month7 days, 7 hours left to enroll

824 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question