Solved

Changing from command line to a graphic interface and installing mySQL in suse 8.2 pro

Posted on 2003-11-17
10
514 Views
Last Modified: 2013-12-15
I'm a newbie for linux, I run win2k as my o/s and have Suse 8.2 Professional running in VMware as a webserver so I can experiment in coding PHP without paying for a host or uninstalling my localhost which I need for ASP.

My friend set it all up for me and he did it without installing mySQL... he's now gone off on holiday for a few weeks and i'm stuck!  He left it in command line mode so I have no graphical interface.

Here's my question:

Can someone either guide me through installing mySQL in command line.... OR ....if that's a difficult way around (esp. considering im a newbie) can you first guide me through changing to a graphical desktop layout and then installing mySQL??

Notes:
1. I have the orginal DVD installation disc I just don't know where to start!
2. The webserver runs fine for most PHP code at the moment, just I can't do anything with db's.

Thanks guys.... tobz
0
Comment
Question by:tobz2020
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
10 Comments
 
LVL 12

Expert Comment

by:paullamhkg
ID: 9768784
For install the mysql in command line is very easy, download the binary source from www.mysql.com and do the procedure as below

     shell> groupadd mysql
     shell> useradd -g mysql mysql
     shell> cd /usr/local
     shell> tar zxvf /path/to/mysql-VERSION-OS.tar.gz
     shell> ln -s full-path-to-mysql-VERSION-OS mysql
     shell> cd mysql
     shell> scripts/mysql_install_db
     shell> chown -R root  .
     shell> chown -R mysql data
     shell> chgrp -R mysql .
     shell> bin/safe_mysqld --user=mysql &
     or
     shell> bin/mysqld_safe --user=mysql &
     if you are running MySQL 4.x

For changing to graphical mode login, try edit the /etc/inittab from init:3 to init:5
0
 
LVL 12

Expert Comment

by:paullamhkg
ID: 9768801
Oh for got to say, to understand more about mysql installation or how to go with your PHP, I will recomment you go to www.mysql.com and look for the documentation site, there have lots of informative stuff around and you can search what you need there.

Most of the mysql users 1st will read/search in there.

Hope this info can help.
0
 

Author Comment

by:tobz2020
ID: 9770344
would you believe I need more help on this ;o)

1. on www.mysql.com which version of mySQL do you recommend; 4 or 5?
2. which download should i choose (x86, libc6) or (s/390) or (IA64) or (Alpha) etc?

3. to change to graphical mode do I do the following:
linux:~ # edit /etc/inittab init:5
...and then what do I do as it says 'swap file "/etc/inittab.swp" already exists! ...at which point I just quited as I didn't want to mess anything up.

4. I need the graphical interface done first so I can download from mysql.com... unless I can do it from the DVD?

Thanks for your help....
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 12

Expert Comment

by:paullamhkg
ID: 9775738
1st for download the mysql, I recommend the version 4 because I used it and happy with it, you can make your own choice.

if you using a IBM compatible PC x86 will be the choice.

"/etc/inittab.swp" mean you or someone have already try to edit the file, but not quitting  properly, so try to make a copy of your inittab by "cp /etc/inittab /etc/inittab.bak" so that if there anything wrong you still got the backup file to recover, than try to vi the file again, it will ask you whether you wanted to delete or recover, just choose recover or delete and make you change.
0
 

Author Comment

by:tobz2020
ID: 9781789
thanks for advice but was to no avail, maybe because i dont fully understand how linux works yet... but a friend advised me to just type "startx" after logging in and that worked, a very easy solution!
0
 
LVL 12

Expert Comment

by:paullamhkg
ID: 9785557
oh sorry I forgot to mention about the startx, what I give out is the xwindows will start up everytime you startup your linux box. Yes, startx is to launch you xwindows from command promt/console mode.

If I'm too busy I'm sure I will give out the same suggestion.

Anyway, you find out the solution, send a 0 point request to EE admin, and request to delete this TA and have points refund, just post the request here http://www.experts-exchange.com/Community_Support/ will do :)

enjoy your linux life.
0
 

Author Comment

by:tobz2020
ID: 9785851
i appreciate your help even though i managed it a different way, sorry you dont get the points!

thanks again
0
 
LVL 12

Expert Comment

by:paullamhkg
ID: 9794459
Dear tobz2020,

I'm not looking for points, I'm here to learn and trying my best to help.

Dear YensidMod,

please PAQ this and points refund, I've no objection.

Paul
0
 
LVL 1

Accepted Solution

by:
Computer101 earned 0 total points
ID: 9806087
PAQed, with points refunded (50)

Computer101
E-E Admin
0

Featured Post

Why Off-Site Backups Are The Only Way To Go

You are probably backing up your data—but how and where? Ransomware is on the rise and there are variants that specifically target backups. Read on to discover why off-site is the way to go.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question