MySql installation for linux

Programming, for all ages and all languages.
rich_m
Member
Member
Posts: 33
Joined: Sat Nov 25, 2006 10:05 am

MySql installation for linux

Post 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!!
imagination is once limit......
rich_m
Member
Member
Posts: 33
Joined: Sat Nov 25, 2006 10:05 am

Re:

Post 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????
imagination is once limit......
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post 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".
rich_m
Member
Member
Posts: 33
Joined: Sat Nov 25, 2006 10:05 am

Re:

Post 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??
imagination is once limit......
rich_m
Member
Member
Posts: 33
Joined: Sat Nov 25, 2006 10:05 am

Linux update

Post by rich_m »

Is there some way like "windows update", where Linux gets all the latest updates of its software?????????
imagination is once limit......
Bobbias
Posts: 14
Joined: Sun Mar 23, 2008 11:27 pm
Location: Midland, Ontario Canada

Post 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.
I've been writing miserably bad code since I was 12, and things haven't changed yet...
wilsonsamm
Posts: 8
Joined: Mon Mar 24, 2008 6:58 pm

Post 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
I take my tea with milk
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post 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.
rich_m
Member
Member
Posts: 33
Joined: Sat Nov 25, 2006 10:05 am

Post 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????????????????
imagination is once limit......
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

no, that's just a logfile. It seems you don't have yum installed. Follow my advice and try "rpm".
rich_m
Member
Member
Posts: 33
Joined: Sat Nov 25, 2006 10:05 am

Re:

Post 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)
imagination is once limit......
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post by JamesM »

I gave you some commands to run above. I am quickly losing patience with your lack of reading/learning ability...
rich_m
Member
Member
Posts: 33
Joined: Sat Nov 25, 2006 10:05 am

Re:

Post 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}
imagination is once limit......
User avatar
JamesM
Member
Member
Posts: 2935
Joined: Tue Jul 10, 2007 5:27 am
Location: York, United Kingdom
Contact:

Post 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!
xyzzy
Member
Member
Posts: 391
Joined: Wed Jul 25, 2007 8:45 am
Libera.chat IRC: aejsmith
Location: London, UK
Contact:

Post 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
Post Reply