Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
just installed mysql and the installation seem to go ok..
according to research it looks like a permission err msg but i'm not sure how to correct the problem.
do i give permission to the tmp folder or do i modify the my.cnf file to correct this issue
one of the research i ran inot said to created a folder /var/mysqldata/ to fix this problem but how do i tell it to store the mysql.sock into tis folder..
i also gave group and user mysql rights to this folder.
or am i on the wrong path to resolving this issue?
any help u can give me would be greatly appreciated.
and this is the error i received:
[root@comgen mysql]# bin/mysqld_safe --user=mysql &
[1] 29804
[root@comgen mysql]# Starting mysqld daemon with databases from /usr/local/mysql/data
STOPPING server from pid file /usr/local/mysql/data/comgen.ca.pid
041007 21:41:03 mysqld ended
[1]+ Done bin/mysqld_safe --user=mysql
log file
mysql started
warning: asked for 196608 thread stack, but got 126976
usr/local/mysql/bin/mysql: can't read dir of '/root/tmp/' errcode 13
usr/local/mysql/bin/mysql: can't create/write to file '/root/tmp/ibwnkdan
/usr/local/mysql/bin/mysql: shutdown complete
mysql ended
Hi, I'm no mysql expert, but I found that you need to change the ownership of the directories mysql created when you issued the command 'mysql_install_db' from root:root to mysql:mysql. Try (as root)
still getting the same problems...i'm lost on this one..
where can i go to have this point to a different folder..
mysql started
warning: asked for 196608 thread stack, but got 126976
usr/local/mysql/bin/mysql: can't read dir of '/root/tmp/' errcode 13
usr/local/mysql/bin/mysql: can't create/write to file '/root/tmp/ibwnkdan
/usr/local/mysql/bin/mysql: shutdown complete
mysql ended
I installed the binary Slackware package and ran the 'mysql_install_db' as 'root'. When I ran '/usr/bin/safe_mysqld --user=mysql &' the message "mysql ended" appeared. To resolve this I browsed to the '/var/lib/mysql' directory and removed the directories "mysql" and "test".
Then, I created a password for the 'mysql' user (slackware was kind enough to create a password-less user 'mysql' for me). Then, I logged in as 'mysql' and ran 'mysql_install_db'. I then was able to successfully execute '/usr/bin/safe_mysqld --user=mysql &' to start the mysql daemon.
Yes, after some time I found the same.
The DB only starts from Linux user mysql.
Also if you install 4.1.7 from RPM the db starts on boot.
Pick up the pid from /var/lib/localhost.pid
ps -ef | grep ThePidFromFile
You can then check the startup command with datadir, basedir, etc that is used at boot.
I know this is an old thread, but the solution I'll post may help someone with the same problem as Robin01.[list=1][*]Copy /usr/local/mysql/share/mysql/my-large.cnf to /usr/local/mysql/data.my.cnf[*]Edit /usr/local/mysql/data/my.cnf and add the line tmpdir = /tmp/ to the section called [mysqld] [*]Start mysql by doing "/usr/local/mysql/bin/mysqld_safe --user=mysql &" and it should work fine.[/list=1]
Make sure that the user mysql owns /usr/local/mysql.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.