Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 05-30-2009, 11:59 PM   #1
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:

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

/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
/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
drwxrwxrwt  4 root root 4096 2009-05-31 12:04 tmp/
I find that the /tmp directory permissions in my laptop are
drwxrwxrwt  10 root root  4096 2009-05-31 12:06 tmp
/etc/passwd in my desktop for user :mysql
/etc/passwd in my laptop for user :mysql
/etc/groups in my desktop for user :mysql
/etc/groups in laptop for user : mysql
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?

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

Rep: Reputation: 100Reputation: 100
Check the database directories permission:


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
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 > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:32 PM.

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