Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
03-06-2004, 09:41 PM
|
#1
|
|
Member
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 621
Rep:
|
mysql installation weird...
I downloaded mysql 4.0 and I'm following this tutorial: http://www.madpenguin.org/Article751.html
apache went well so far... but mysql is weird. I did the ./configure thing but I got a bunch of stuff and it said that it did not need to do a configure. then I typed make and just got an error make: *** No rule to make target `install'. Stop. and same thing for make install.
But I can't do anything, I can't start mysql. I was even playing with some of the executables and one of them told me I need to do a make install first. what the heck is going on? It should let me do the make install but it's not. and yes I'm doing it from the right folder (main mysql folder).
any suggestions on why this is happening?
|
|
|
|
03-06-2004, 09:43 PM
|
#2
|
|
Member
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 621
Original Poster
Rep:
|
I noticed a few threads here with some of the issues I'm having such as the "mysql ended" when I try to start the mysqld_safe, when I try to start the mysqld I just get some error saying to read the manual about running it under root (I AM under root). Since these issues seem to be known, should I maybe use an older version, would it solve the problems?
|
|
|
|
03-07-2004, 08:45 AM
|
#3
|
|
Member
Registered: Nov 2003
Location: The North of England
Distribution: Suse 10.3
Posts: 172
Rep:
|
It looks like it wont install because you already have it.
Is mysql running? It is started by the system at bootup.
Try this;
ps aux|grep mysqld
If it is running, stop it with
/usr/local/bin/mysqld stop
then restart it with
/usr/local/bin/safe_mysql &
I am using version 4.0.15 with Mandrake 9.2 without problems (so far).
|
|
|
|
03-07-2004, 09:43 AM
|
#4
|
|
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120
Rep:
|
You downloaded the source code yeah, not the binary versions? I've done the same thing myself when I've been a bit quick on the mouse buton.
|
|
|
|
03-07-2004, 01:14 PM
|
#5
|
|
Member
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 621
Original Poster
Rep:
|
That's the thing, I don't know what I downloaded, I just downloaded whatever mysql.com gave me. How can I tell if it's source or binnary? I don't have it installed already either. If I type mysqld out of nowhere it just says it's an invalid command. I need to go in the bin folder and use the ./ method.
|
|
|
|
03-07-2004, 01:20 PM
|
#6
|
|
Moderator
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047
Rep:
|
When you went to mysql.com you had the choice of binary of source. I can't imagine it "gave" you one in particular. You can see a list of downloads for mysql 4 at:
http://www.mysql.com/downloads/mysql-4.0.html
|
|
|
|
03-07-2004, 03:09 PM
|
#7
|
|
Member
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 621
Original Poster
Rep:
|
I downloaded the first one in the list.
Linux (x86, libc6) Standard 4.0.18 15.1M
Is that the right one?
|
|
|
|
03-07-2004, 03:13 PM
|
#8
|
|
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120
Rep:
|
Not if you want to compile it. The source code is right down the bottom of the page or click on the source downloads link on the page.
|
|
|
|
03-07-2004, 03:26 PM
|
#9
|
|
Member
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 621
Original Poster
Rep:
|
I noticed that, but what about this?
"For maximum stability and performance, we recommend that you use the binaries we provide."
Does it mean it will crash allot if I use those? They seem to be more of a "use at your own risk" bassis and that, I don't like.
Last edited by Red Squirrel; 03-07-2004 at 03:28 PM.
|
|
|
|
03-07-2004, 03:57 PM
|
#10
|
|
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120
Rep:
|
Well I haven't had it crash on me, the downloadable documention has siggested compiler directives you can use when compiling to make it as stable as possible, I guess all the downloads are "use at your own risk" unless you actually pay the good folk for a license/support or whatever.
|
|
|
|
03-07-2004, 05:01 PM
|
#11
|
|
Member
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 621
Original Poster
Rep:
|
I got it installed, I have no clue wether it's good or not, but now I need to start it, how do I do that? mysqld_safe returns this:
The file /usr/local/mysql/libexec/mysqld doesn't exist or is not executable
Please do a cd to the mysql installation directory and restart
this script from there as follows:
./bin/mysqld_safe.
I tried doing what it says, nothing. I also tried mysqld but it can't find it.
|
|
|
|
03-07-2004, 05:20 PM
|
#12
|
|
Senior Member
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120
Rep:
|
Look in especially for the mysql_install_db
/usr/local/mysql/bin
you might want to copy over one of the example configurations i.e mysql_small .cnf to
/etc/my.cnf examples are in the /usr/local/mysql/ subdirectories, have a look around in them.
|
|
|
|
03-07-2004, 06:12 PM
|
#13
|
|
Member
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 621
Original Poster
Rep:
|
well I'm getting somewhere... now when I try to start mysqld I only get this instead of that other error I got before.
[root@localhost mysql]# /usr/local/mysql/bin/mysqld_safe
Starting mysqld daemon with databases from /usr/local/mysql/data
040307 19:10:07 mysqld ended
[root@localhost mysql]#
What what's bothering me is that if I only use mysqld it says it does not exist.... that's the right one, mysqld_safe is only to test right?
|
|
|
|
03-07-2004, 06:17 PM
|
#14
|
|
Member
Registered: Dec 2003
Distribution: FC9 on main server
Posts: 621
Original Poster
Rep:
|
Sweet! I was not done the tutorial and I had to do
chown -R root:mysql /usr/local/mysql
chown -R mysql:mysql /usr/local/mysql/data
Now it works (I think... it does not end). But can someone explain what those commands actually do?
Edit: all is working for me now, apache, php and mysql!!!
only took me a few weeks.
Last edited by Red Squirrel; 03-07-2004 at 07:54 PM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 12:47 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|