LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Closed Thread
  Search this Thread
Old 09-05-2008, 05:40 AM   #1
kernel2k8
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Rep: Reputation: 0
Angry Mysql Installation from source but not succeeded yet


Hello all there.......
Please anybody help me out in installing mysql form source. I am installing mysql from tarball. But getting problem to install mysqld service and unable to start mysql sevice. When i'm installing there is problem to generate the /usr/local/src/mysql/data/ directory. I've download the mysql-4.0.22.tar.gz version for installation and my operationg system is CentOS 4.
First I've untared the mysql tar in /usr/local/src then i created group and user for mysql with following commands:
#groupadd mysql
#useradd *g mysql *c "MySQL Server" *d /dev/null *s /sbin/nologin mysql
then
compiled the ./configure file with following parameters:
#./configure \
**prefix=/usr/local/mysql \
**localstatedir=/usr/local/mysql/data \
**disable*maintainer*mode \
**with*mysqld*user=mysql \
**with*unix*socket*path=/tmp/mysql.sock \
**without*comment \
**without*debug \
**without*bench
then i run make && make install command and it got installed successfully. After thar i installed initial databases by running ./scripts/mysql_install_db script and now when i'm changing the ownership for following dirictories it's giving me error /usr/local/mysql/data directory not exist.
#chown *R root:mysql /usr/local/mysql
#chown *R mysql:mysql /usr/local/mysql/data
why is it so please help me out solving this problem.
plz.....
 
Old 09-05-2008, 08:22 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,481

Rep: Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970Reputation: 3970
Quote:
Originally Posted by kernel2k8 View Post
Hello all there.......
Please anybody help me out in installing mysql form source. I am installing mysql from tarball. But getting problem to install mysqld service and unable to start mysql sevice. When i'm installing there is problem to generate the /usr/local/src/mysql/data/ directory. I've download the mysql-4.0.22.tar.gz version for installation and my operationg system is CentOS 4.
First I've untared the mysql tar in /usr/local/src then i created group and user for mysql with following commands:
#groupadd mysql
#useradd *g mysql *c "MySQL Server" *d /dev/null *s /sbin/nologin mysql
then
compiled the ./configure file with following parameters:
#./configure \
**prefix=/usr/local/mysql \
**localstatedir=/usr/local/mysql/data \
**disable*maintainer*mode \
**with*mysqld*user=mysql \
**with*unix*socket*path=/tmp/mysql.sock \
**without*comment \
**without*debug \
**without*bench
then i run make && make install command and it got installed successfully. After thar i installed initial databases by running ./scripts/mysql_install_db script and now when i'm changing the ownership for following dirictories it's giving me error /usr/local/mysql/data directory not exist.
#chown *R root:mysql /usr/local/mysql
#chown *R mysql:mysql /usr/local/mysql/data
why is it so please help me out solving this problem.
plz.....

Have you checked to see if the /usr/local/mysql directory exists? How about the /usr/local/mysql/data directory?? If not, why don't you try to create it? It doesn't show where you're actually looking for that directory, just that you're trying to chown it.
 
Old 09-05-2008, 11:57 PM   #3
kernel2k8
LQ Newbie
 
Registered: Sep 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Question

Quote:
Originally Posted by TB0ne View Post
Have you checked to see if the /usr/local/mysql directory exists? How about the /usr/local/mysql/data directory?? If not, why don't you try to create it? It doesn't show where you're actually looking for that directory, just that you're trying to chown it.
Hello TBone thanks for your reply very soon...
Yes the /usr/local/mysql directory is exist, but only the data directory won't. And as per ur suggetion i've tried creating data directory manually but it didn't work.
Now if you have tried installing mysql from source before then plz write what you did from scratch step by step, it will help me more...
thanks once again....
 
  


Closed Thread


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
error: compiling splashutil in slackware12, anyone succeeded rkrishna Slackware 6 02-09-2008 06:23 AM
Have You succeeded running World of Warcraft under wine? thanquol Linux - Games 3 08-31-2005 08:20 AM
Did someone succeeded in install of emacspeak? Linux.tar.gz Slackware 1 01-12-2005 10:55 PM
Install succeeded!! Very happy, wanna share with you guys! bruno buys Debian 5 07-12-2004 10:18 AM
php4 mysql, installation, php-pages with mysql info stay empty dnla Linux - Software 2 03-14-2004 02:54 PM


All times are GMT -5. The time now is 10:49 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration