473,320 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

MySQL on Redhat Linux

To make a long story short, let me say I had MySQL working on Windows 98
and everything was fine. Well, I took the big leap and removed all
traces of Windows and Microsoft from the computer. (hooray!) Once I had
Linux running OK, I downloaded and installed MySQL using an RPM package.
I guess the server is running (it says it is every time the computer
starts and it stops successfully every time the computer shuts down)
however, I cannot figure out how to get the MySQL prompt.
I've searched the entire hard drive for MySQL, mysql, MySQL*, mysql* and
probably some others, too. The only thing I found was a shell script
called mysql that starts or stops the server if I am logged in to Linux
as root. I cannot figure out how to start the interactive program that
allows me to make select statements, inserts, updates, etc.
I'm wondering about some things:
Did I download and install the wrong thing?
Am I just not looking for the correct thing?
Did I install it incorrectly?
All the newsgroup messages and documentation give instructions on what
to do from the MySQL prompt, but nobody says anything about how to get
it except to type mysql from the directory where it's installed.
Needless to say, I've tried that and BASH has no idea what I mean.
Jul 23 '05 #1
4 2090
Jeff S (ff*******@hotmail.com) wrote:
: To make a long story short, let me say I had MySQL working on Windows 98
: and everything was fine. Well, I took the big leap and removed all
: traces of Windows and Microsoft from the computer. (hooray!) Once I had
: Linux running OK, I downloaded and installed MySQL using an RPM package.
: I guess the server is running (it says it is every time the computer
: starts and it stops successfully every time the computer shuts down)
: however, I cannot figure out how to get the MySQL prompt.
: I've searched the entire hard drive for MySQL, mysql, MySQL*, mysql* and
: probably some others, too. The only thing I found was a shell script
: called mysql that starts or stops the server if I am logged in to Linux
: as root. I cannot figure out how to start the interactive program that
: allows me to make select statements, inserts, updates, etc.
: I'm wondering about some things:
: Did I download and install the wrong thing?
: Am I just not looking for the correct thing?
: Did I install it incorrectly?
: All the newsgroup messages and documentation give instructions on what
: to do from the MySQL prompt, but nobody says anything about how to get
: it except to type mysql from the directory where it's installed.
: Needless to say, I've tried that and BASH has no idea what I mean.

as root, go to the root directory, and try to find the file.

cd /
find . -iname mysql

if you can't find a working copy of the mysql program (the client, not the
script you mention above) then there must be a client rpm that you need to
install.

If you do find a file called "mysql" that is the client program then I
wonder why it is not in the path already. I would try to install a mysql
client rpm (for your version) anyway to see if it puts things in the
correct location, or you could just add the directory to your path.

--

This space not for rent.
Jul 23 '05 #2
Jeff S wrote:
Did I install it incorrectly?


Most Linux distros have MySQL in their packet system. I suggest you
learn to use that and install MySQL from there. That way you won't
propably get the latest version, but you should get stable version and
installing should be easy. Also updates will come automaticly when you
update your system.

I personally prefer Debian or Ubuntu, so I don't know how it is done in
Redhat, but I think they had a tool called up2date for that task.

Btw. Did you install the server-packet only? Or did you install the
client-packet also?
Jul 23 '05 #3
Among the wreckage we found a fragment on which Jeff S had scratched:
starts and it stops successfully every time the computer shuts down)
however, I cannot figure out how to get the MySQL prompt.


If you install mysql from the RPM that comes with redhat you should find
that you have a /usr/bin/mysql

This is what is on my machine:

[unclebob@bardolph unclebob]$ which mysql
/usr/bin/mysql
[unclebob@bardolph unclebob]$ rpm -qf `which mysql`
mysql-3.23.58-4

Jul 23 '05 #4
In case the others were unclear, Jeff:

You must install both the MySQL Server and the MySQL client programs. If
you're using redhat, the disks should have a stable version from which
you can install using the Redhat Package Manager. Then, when both are
installed and the server is started (you can use the "Applications ->
System Setting -> Server Settings -> Services" to start it, and set it
to start automatically on boot up in Fedora Core 3), you can then use
the 'mysql' command. Typically, you would start MySQL by typing:

'mysql -u root -p'

if you are the root user (this is not the same as the system root!). The
'-u' means you are typing the user next ('root' in this case) and the
'-p' means mysql will prompt you for a password.

An excellent book that has helped me set up a MySQL based website is
Paul Dubois' "MySQL". I highly recommend this or another text so you can
set MySQL up correctly, as in its default state it requires no passwords
and is thus insecure.

Rich Leitner


Jeff S wrote:
To make a long story short, let me say I had MySQL working on Windows 98
and everything was fine. Well, I took the big leap and removed all
traces of Windows and Microsoft from the computer. (hooray!) Once I had
Linux running OK, I downloaded and installed MySQL using an RPM package.
I guess the server is running (it says it is every time the computer
starts and it stops successfully every time the computer shuts down)
however, I cannot figure out how to get the MySQL prompt.
I've searched the entire hard drive for MySQL, mysql, MySQL*, mysql* and
probably some others, too. The only thing I found was a shell script
called mysql that starts or stops the server if I am logged in to Linux
as root. I cannot figure out how to start the interactive program that
allows me to make select statements, inserts, updates, etc.
I'm wondering about some things:
Did I download and install the wrong thing?
Am I just not looking for the correct thing?
Did I install it incorrectly?
All the newsgroup messages and documentation give instructions on what
to do from the MySQL prompt, but nobody says anything about how to get
it except to type mysql from the directory where it's installed.
Needless to say, I've tried that and BASH has no idea what I mean.

Jul 23 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Mark | last post by:
Using a Java program, I can connect to the test database in MySQL. The test database is installed using a MySQL utility, and it can be accessed by any user without supplying a password. The...
0
by: Eric Raymond | last post by:
When installing the rpms (or the tar file) onto Red Hat Enteprise Linux AS Beta 1 (Taroon), we get the follwing error: Installing all prepared tables /usr/bin/mysql_install_db: line 1: 7690...
0
by: Chris Moy | last post by:
SEND-PR: -*- send-pr -*- SEND-PR: Lines starting with `SEND-PR' will be removed automatically, as SEND-PR: will all comments (text enclosed in `<' and `>'). SEND-PR: From: moyc To:...
0
by: darin Ginther | last post by:
RE:mysql-3.23.58-1.73.i386.rpm mysqld does not exist on my system... I think this is just the client software.. I have to install the database itself from source, IE -...
0
by: zratis | last post by:
Hello, I wanted to find out what MySQL administrators think about MySQL installation on RedHat and other Linux distributions with the use of RPM. RedHat reallocates all MySQL files into...
1
by: Maxim. V. | last post by:
Hello to everone, As mentioned in this *guide(1), i've compiled mysql on my fedora Core 2 system, with the following spec's : *(1) http://hulan.info/blog/index.php?itemid=576 ...
4
by: KJemison | last post by:
Well.... just wanted to know if the people at the MySQL.org site ever look at the posts in this group. If they do, they can possibly us a little constructive criticism from a slightly irritated...
3
by: muruga | last post by:
Hi to everybody can any one give me suggestions about how to download mysql query browser for redhat linux 9.0 for mysql version 3.23.54. I had tried it by downloading...
1
by: hapytran | last post by:
Hi all, I've just install RedHat Enterprise Linux 4, and upgraded to RedHat Enterprise Linux 5. I need to set up a web server on it. Things are ok except MySQL database. I downloaded...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.