LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-30-2009, 11:59 PM   #1
vitalstrike82
Member
 
Registered: Oct 2007
Location: Singapore
Distribution: OpenSuse, Slackware, Redhat
Posts: 318

Rep: Reputation: 40
Questions about file permission while starting mysql


Hi, i install the mysql from source downloaded my the offical mysql website.

I'm able to start my mysql with the user as mysql in my laptop using his command but i'm not able to start up in my desktop:

Code:
/usr/local/mysql/bin/mysqld_safe user=mysql &
For desktop, therefore i use this to solve the problem:

Code:
/usr/local/mysql/bin/mysqld_safe user=root &
After checking, i realise that there maybe some file permission settings which i need to set, but i realise the settings are almost the same as my laptop which i don't understand why my laptop can works but not desktop.

When the
Code:
/usr/local/mysql/bin/mysqld_safe user=mysql &
is started up, mysql will create a mysql.sock in /tmp.

I find that the /tmp directory permissions in my desktop are
Code:
drwxrwxrwt  4 root root 4096 2009-05-31 12:04 tmp/
I find that the /tmp directory permissions in my laptop are
Code:
drwxrwxrwt  10 root root  4096 2009-05-31 12:06 tmp
/etc/passwd in my desktop for user :mysql
Code:
mysql:x:25:25:MySQL:/var/lib/mysql:/bin/false
/etc/passwd in my laptop for user :mysql
Code:
mysql:x:27:27:MySQL:/var/lib/mysql:/bin/false
/etc/groups in my desktop for user :mysql
Code:
mysql:x:27:
/etc/groups in laptop for user : mysql
Code:
mysql:x:27:
Ok here are my questions:
1) I see that the user mysql has the same permission in my laptop and desktop. Why does the user mysql can create a socket in /tmp but not able to create in my desktop?

2) i see that for the /tmp in laptop, there are 10 symbolic links and in desktop there are 4 links. Does these affect why mysql user in desktop is not able to create a socket in the /tmp?

3) Lastly, since i have 10 links to /tmp, what command can i type to see the 10 links to /tmp in my laptop?

Thanks
 
Old 05-31-2009, 12:10 AM   #2
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
Check the database directories permission:
http://dev.mysql.com/doc/refman/5.0/...ysql-user.html
 
  


Reply



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
Problem Starting MySQL on Fresh Fedora 8 Install w/ Yum'd MySQL blong4life Linux - Server 2 07-04-2008 07:44 PM
Starting Tomcat from Eclipse - Permission denied robbbert Programming 1 06-30-2006 04:23 AM
X permission errors on starting another X on :1 netsurf SUSE / openSUSE 7 02-27-2006 10:41 AM
starting mysql immediately after mounting root file system vishalbutte Programming 1 02-01-2006 01:51 AM
Multiple file/group permission questions JustinCoyan Slackware 3 04-19-2005 10:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:50 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