LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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


Reply
  Search this Thread
Old 03-23-2005, 02:49 PM   #1
osga
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Rep: Reputation: 0
Angry MySql Install error


I trying for several hours to install myqsl 4.0.24 and i just cant see what is the problem.

I'm using Slackware 10.1 and i ve removed the package mysql with pkgtool...so far so good,no problem with this.I went to mysql.com to download the tar.gz from them, and after i made this:

as root:

tar xvfz mysql-standard-4.0.24.tar.gz

cd mysql-standard-4.0.24

./configure --prefix==/opt/mysql

Code:
NOTE: This is a MySQL binary distribution. It's ready to run, you don't
need to configure it!

To help you a bit, I am now going to create the needed MySQL databases
and start the MySQL server for you.  If you run into any trouble, please
consult the MySQL manual, that you can find in the Docs directory.

Installing all prepared tables
050323 19:28:35 ./bin/mysqld: Shutdown Complete


To start mysqld at boot time you have to copy support-files/mysql.server
to the right place for your system

PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER!
To do so, start the server, then issue the following commands:
./bin/mysqladmin -u root password 'new-password'
./bin/mysqladmin -u root -h server password 'new-password'
See the manual for more instructions.

NOTE:  If you are upgrading from a MySQL <= 3.22.10 you should run
the ./bin/mysql_fix_privilege_tables. Otherwise you will not be
able to use the new GRANT command!


You can start the MySQL daemon with:
cd . ; ./bin/mysqld_safe &

You can test the MySQL daemon with the benchmarks in the 'sql-bench' directory:
cd sql-bench ; perl run-all-tests

Please report any problems with the ./bin/mysqlbug script!

The latest information about MySQL is available on the web at

Support MySQL by buying support/licenses at 

Starting the mysqld server.  You can test that it is up and running
with the command:
./bin/mysqladmin version
root@server:~/mysql-standard-4.0.24-pc-linux-gnu-i686# Starting mysqld daemon with databases from /root/mysql-standard-4.0.24-pc-linux-gnu-i686/data
STOPPING server from pid file /root/mysql-standard-4.0.24-pc-linux-gnu-i686/data/server.pid
050323 19:28:36  mysqld ended
And i just cant do anything else....What am i doing wrong?!!
 
Old 03-23-2005, 03:08 PM   #2
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
All you need to do is
1) extract the file to where you want it to be located .e.g. mine was extracted to /usr/local and rename mysql
2) as root go to /usr/local/mysql/scripts and do "./mysql_install_db"
3) as root do chown -R root.mysql /usr/local/mysql
4) as root do chown -R mysql.mysql /usr/local/mysql/data
5) You then have to modify the Slackware mysqld script so that it has the right paths to your mysql installation. The databases are in /usr/local/mysql/data in the example I gave.
6) You may have to change passwords for the mysql user.
 
Old 03-23-2005, 03:30 PM   #3
osga
LQ Newbie
 
Registered: Mar 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by reddazz
All you need to do is
1) extract the file to where you want it to be located .e.g. mine was extracted to /usr/local and rename mysql
2) as root go to /usr/local/mysql/scripts and do "./mysql_install_db"
3) as root do chown -R root.mysql /usr/local/mysql
4) as root do chown -R mysql.mysql /usr/local/mysql/data
5) You then have to modify the Slackware mysqld script so that it has the right paths to your mysql installation. The databases are in /usr/local/mysql/data in the example I gave.
6) You may have to change passwords for the mysql user.

root@server:/opt/mysql/scripts# ./mysql_install_db
./mysql_install_db: line 86: my_print_defaults: command not found
Didn't find ./bin/mysqld
You should do a 'make install' before executing thisscript
root@server:/opt/mysql/scripts#

Now im really confused????
 
Old 03-23-2005, 04:26 PM   #4
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 75
Thats puzzling cause it seems like you downloaded the binary that doesn't need to be compiled. Anyway take a look at this documentation, maybe it'll help you sort out your problem.
 
  


Reply


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 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. NoviceW Linux - Networking 17 09-17-2014 03:13 PM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. suziecorbett Linux - Software 8 10-09-2008 02:52 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 09:44 AM
Mysql install error akurtis Linux - Newbie 0 12-10-2003 10:14 PM
mysql installation error (make install error) jolly_good2000 Linux - Software 1 11-14-2002 05:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:55 PM.

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