Click to See Complete Forum and Search --> : Problem Installing MySQL
PhatBarren
09-24-2001, 08:29 PM
I can't seem to install MySQL on my RedHat 7.1 system.
I downloaded mysql-3.23.42-pc-linux-gnu-i686.tar.gz from mysql.com to a directory called /download
then i did the following (as root) at a shell:
tar zxfv mysql-3.23.42-pc-linux-gnu-i686.tar.gz
cd mysql-3.23.42-pc-linux-gnu-i686.tar.gz
./configure --prefix=/usr/local/mysql
make
After 'make' i get the following output:
make: *** No targets specified and no makefile found. Stop. ***
The documentation at www.mysql.com (http://www.mysql.com) only recomends using the RPM (which i tried, and turned out to be a disaster). Two alternate installation documents gave the procedure i followed, plus 'make install', which i never got to because 'make' failed, as well as recomended NOT using the RPM.
Additionally, I in the output of ./configure --prefix=/usr/local/mysql there is a line saying 'This is a binary distribution. It's ready to run, you don't need to configure it.' and then some other stuff.
Please help me get this installed.
Thanks very much,
element-x
09-24-2001, 08:33 PM
You've downloaded a precompiled package of mysql, you'd want to download
http://mysql.com/Downloads/MySQL-3.23/mysql-3.23.42.tar.gz
If you want the source package for MySQL.
PhatBarren
09-24-2001, 08:34 PM
Okay....... just so that i don't come across as completely clueless:
I think that all i have to do is move the .tar.gz file to /usr/local, rename it to mysql.tar.gz, and then just tar zxfv right there, and that'll be it. I guess that's what they mean by it being a binary distribution, i just didn't thing that there existed binary distributions other that RPMs.
Does this sound about right????
Thanks again :)
PhatBarren
09-24-2001, 08:36 PM
Thanks
element-x
09-24-2001, 09:41 PM
Yea, just un-tar.gz it to your /usr/local/mysql directory and it should work :)
PhatBarren
09-24-2001, 11:06 PM
Okay, i'm having a problem now getting the server to start...
When i type ./safe_mysqld --user=mysqlusr &
i get a message saying 'mysqld ended'
If i try to use mysqladmin, i get a message telling me to make sure to check that mysqld is running and that the socket /tmp/mysql.sock exists.
Well there is no file /tmp/mysql.sock as specified, so maybe that is the problem???
How can i create one??
Thanks :)
EscapeCharacter
09-24-2001, 11:10 PM
you need to run mysql_install_db to get the initial set of configuration tables installed
PhatBarren
09-24-2001, 11:21 PM
I did that.
And in the /usr/local/mysql/var dierctory, there exists two subdirectories, test and mysql, and a file called localhost.localdomain.err
I'm assuming this means that the initial tables have been created, but there still is no /tmp/mysql.sock .
Any ideas???
PhatBarren
09-26-2001, 09:26 PM
How can I get /tmp/mysql.sock ??? is there any way I can get it off the web somewhere???
PhatBarren
09-27-2001, 12:51 PM
I tried using the RPM again, after discussing this with one of my profs. I run the mysql_install_db, and it seams to work. then i try to set the root password, as described in the documentation, but the documentation doesn't say what to put when prompted 'Enter Password:' What is this??? the old default mysql root password?? my new password (typed again)??? my system root password???? what is it??????????????????????????????
shell> mysqladmin -u root -p password 'mysqlpass'
Enter Password:
./mysqladmin: connect to server at 'localhost' failed
error: 'Acces denied for user 'root@localhost' (Using Password: YES)'
PLEASE HELP ME!
I've beend trying for 3 days to get this installed!!!!!!!!!!!!!!!!!!!!!!!!!!!!
newmexican
08-26-2002, 03:52 PM
Has this been solved?
How can I get /tmp/mysql.sock ??? is there any way I can get it off the web somewhere???
Did you ever figure this out? I am having the same exact senerios. I downloaded a mysql-3.5.23-pc-linux-gnu-i686-.tar.gz.
It too looks like a pre-configured install. I cannot specify /usr/local/mysql as the dir.
Thanks
newmexican
08-26-2002, 04:29 PM
Has this been solved?
How can I get /tmp/mysql.sock ??? is there any way I can get it off the web somewhere???
Did you ever figure this out? I am having the same exact senerios. I downloaded a mysql-3.5.23-pc-linux-gnu-i686-.tar.gz.
It too looks like a pre-configured install. I cannot specify /usr/local/mysql as the dir.
Thanks
newmexican
08-26-2002, 06:38 PM
Has this been solved?
How can I get /tmp/mysql.sock ??? is there any way I can get it off the web somewhere???
Did you ever figure this out? I am having the same exact senerios. I downloaded a mysql-3.5.23-pc-linux-gnu-i686-.tar.gz.
It too looks like a pre-configured install. I cannot specify /usr/local/mysql as the dir.
Thanks
Originally posted by PhatBarren
I tried using the RPM again, after discussing this with one of my profs. I run the mysql_install_db, and it seams to work. then i try to set the root password, as described in the documentation, but the documentation doesn't say what to put when prompted 'Enter Password:' What is this??? the old default mysql root password?? my new password (typed again)??? my system root password???? what is it??????????????????????????????
shell> mysqladmin -u root -p password 'mysqlpass'
Enter Password:
./mysqladmin: connect to server at 'localhost' failed
error: 'Acces denied for user 'root@localhost' (Using Password: YES)'
PLEASE HELP ME!
I've beend trying for 3 days to get this installed!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Ok you need to chill out. When it prompts you to 'enter password', just hit <enter>. You specify the password in the command line itself. If that still doesnt work, you might try putting the '-p' and the 'password' together like this:
mysqladmin -u root -ppassword 'newpassword'
There is a really good mysql FAQ at http://www.bitbybit.dk/mysqlfaq/faq.html , you might give it a look over and see if it answers some of your questions.
newmexican
08-27-2002, 10:40 AM
I don't know why it got posted 3 times. Not intentianlay.
I will attempe that again. I tried it yesterday with mixed results.
Thanks