Page 1 of 4

MySql installation for linux

Posted: Mon Mar 24, 2008 11:56 pm
by rich_m
I need to install the latest, stable release of MySql-server.
A MySql version is already there, MySql 4.1

This is my OS version.
$cat /proc/version
Linux version 2.6.9-5.ELsmp ([email protected]) (gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)) #1 SMP Wed Jan 5 19:30:39 EST 2005

Any idea as to how i go about this??

I have got to used doing things on windows.......Linux makes me sweat. Could someone guide me, Plus I connect to this remote server via Putty....so all i have is command line :(

How do i uninstall the old version etc......??
Thanks in advance!!

Re:

Posted: Tue Mar 25, 2008 12:43 am
by rich_m
OK....i'll do my home work on the versions...etc......But i'd like to understand this installation procedure in Linux......whats the equivalent of going to the control panel and removing a software on Linux????

Posted: Tue Mar 25, 2008 3:01 am
by JamesM
OK....i'll do my home work on the versions...etc......But i'd like to understand this installation procedure in Linux......whats the equivalent of going to the control panel and removing a software on Linux????
It's handled by a package manager, which is entirely dependent on your linux distribution.

Debian/Ubuntu use APT - "A package tool".
Gentoo uses "emerge".
Fedora core and red hat enterprise linux(RHEL) use YUM.

lines go something like: "yum install mysql-server".
type "yum --help" for more information, or, rtfm with "man yum".

Re:

Posted: Tue Mar 25, 2008 9:56 pm
by rich_m
Version

Code: Select all

$cat /proc/version 
Linux version 2.6.9-5.ELsmp ([email protected]) (gcc version 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)) #1 SMP Wed Jan 5 19:30:39 EST 2005

Code: Select all

[root@trisvr3 /]# yum
bash: yum: command not found
Any idea as to where this "yum" software is?? Should i add it's path, so that it works from any location??

Linux update

Posted: Tue Mar 25, 2008 9:59 pm
by rich_m
Is there some way like "windows update", where Linux gets all the latest updates of its software?????????

Posted: Wed Mar 26, 2008 3:17 am
by Bobbias
As he said before:

Each linux distribution has it's own program to deal with installing and updating packages.

I've been SSHing into a linux server with Putty myself a bit. The system I'm SSHing into uses a modified version of Busybox linux, and uses a very stripped down (but still very functional) package manager called ipkg.

I suggest you do a search for yum and see where it is, and go to that folder. You need to locate the file before you can add it's path.

Posted: Wed Mar 26, 2008 3:19 am
by wilsonsamm
which distro are you using?

debian/ubuntu/anything like that:
type "man apt" at the prompt to find out more
slackware:
type "pkgtool"
redhat:
try "rpm" if yum doesn't work.
anything else:
ask us

Posted: Wed Mar 26, 2008 3:31 am
by JamesM
Yeah if it doesn't have yum it'll have rpm.

Code: Select all

rpm --help
man rpm
info rpm
USEABILITY WARNING: RPM is wank. You were warned.

Posted: Wed Mar 26, 2008 6:12 am
by rich_m
Bobbias wrote:I suggest you do a search for yum and see where it is, and go to that folder. You need to locate the file before you can add it's path.

Code: Select all

[root@trisvr3 /]# find -name 'yum'
./etc/log.d/scripts/services/yum
Should I add the above path??? How do i use yum to update????????????????

Posted: Wed Mar 26, 2008 6:46 am
by JamesM
no, that's just a logfile. It seems you don't have yum installed. Follow my advice and try "rpm".

Re:

Posted: Wed Mar 26, 2008 10:31 pm
by rich_m
Ok so rpm helps install stuff, now how do i use it to update all the software on Linux (RedHat)?????

(Hope my question does not sound crazy)

Posted: Thu Mar 27, 2008 1:07 am
by JamesM
I gave you some commands to run above. I am quickly losing patience with your lack of reading/learning ability...

Re:

Posted: Fri Mar 28, 2008 1:14 am
by rich_m
I did a man on rpm, i found tht to upgrade we use the following.

rpm {-U|--upgrade} [install-options] PACKAGE_FILE ...

I have mySql installed on this server, I want to upgrade it to the latest stable version.

But i dont find any mySql rpms...........infact these are all the rpms i have (i guess)

Code: Select all

[root@trisvr3 /]# find -name "*.rpm"
./root/sudo-1.6.7p5-30.1.i386.rpm
./root/IBMJava2-142-ia32-JRE-1.4.2-9.0.i386.rpm
./root/bcm5700-8.3.14-1.src.rpm
./root/tg3-3.66d-1.src.rpm
0.rhel3.ia64.rpm
./var/cache/alchemist/printconf.rpm
./usr/share/doc/vim-common-6.3.035/Changelog.rpm
./usr/src/redhat/RPMS/i386/tg3-3.66d-1.i386.rpm
./usr/src/redhat/RPMS/i386/tg3-debuginfo-3.66d-1.i386.rpm
./usr/src/redhat/SRPMS/tg3-3.66d-1.src.rpm
[root@trisvr3 /]#
Windows has spoilt me I guess, I seem to find Linux very hard to understand.

@JamesM {aplogies}

Posted: Fri Mar 28, 2008 2:17 am
by JamesM
So download the latest mysql rpm?

Windows hasn't spoiled you, there are plenty of good package managers out there, APT being the best imho, it's just your distro is slightly old and doesn't come with one!

Posted: Fri Mar 28, 2008 3:13 am
by xyzzy
If possible you should update to RHEL5. It's far better, has a newer MySQL and a decent package manager.

If you can't, get the RPMs for MySQL 5.0 here

You want to get the RHEL4 x86 Server, Client, Shared libraries, Shared compatibility libraries and Headers and libraries packages. Download them all to your server and install each of them in turn with

Code: Select all

rpm -Uvh /path/to/file.rpm