File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes mysql   rm: cannot unlink `/tmp/mysql.sock': Operation not permitted Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "mysql   rm: cannot unlink `/tmp/mysql.sock Watch "mysql   rm: cannot unlink `/tmp/mysql.sock New topic

mysql rm: cannot unlink `/tmp/mysql.sock': Operation not permitted


Joined: Sep 18, 2001
Posts: 1
Hi ,
there are more than 120 user in using the linux server Debian in
my university.
and I'm not allowed to touch the /root account of the Debian server.
But I would like to install mysql in my own account called "jonny" in order to communicate with JDBC and JSP(TOMCAT)
I using mysql-3.22.32 version( source - tarball )
/home/jonny/temp% ./configure --prefix=/home/jonny/mysql
/home/jonny/temp% make
/home/jonny/temp% make install
/home/jonny/temp% ./scripts/mysql_install_db
so Far I have succeffuly install up to mysql_install_db
next,when I type safemysqld,
/home/jonny/mysql/bin% safe_mysqld &
Starting mysqld daemon with databases from
rm: cannot unlink `/tmp/mysql.sock': Operation not permitted
mysqld daemon ended
when i type
/home/jonny/mysql% ls -l /tmp/mysql.sock
I saw there is another user who is using the mysql.sock
hence i can't start my mysql db because my mysql.sock is using by other user already.
can anyone who is kind enough to help or give me some hint on how to solve this /tmp/mysql.sock file problem.
Is it we go to /home/jonny/mysql/var/my.cnf to change the socket filename would solve this problem...
is anyone who has same situatin as me ..who are using the shared Operating system such as Linux/ Solaris in the universiy or company who has the same problem as me...pls share your solution with me...thanks...
a million thanks.

I agree. Here's the link:
subject: mysql rm: cannot unlink `/tmp/mysql.sock': Operation not permitted
It's not a secret anymore!