MySQL on Linux .......

MySQL on Linux .......

Post by rivet » Thu, 06 Jul 2000 04:00:00



The first part of this post is a request for directions to the best
newsgroup:  where do I go for questions about MySQL on Linux installation
problems?

I'll toss in the second part, because my problem seems of a general nature.
I'm a totally-green newbie trying to get MySQL working on Mandrake 7.0.  For
reference, it's a fairly modern box with lots of memory.  Following
directions that seem standardized from several sources, I've downloaded the
file mysql-3.22.32-pc-linux-gnu-i686.tar.gz
and plopped it into the following directory:
/usr/local/mysql
I used the command tar xzvf mysql-3.22.32-pc-linux-gnu-i686.tar.gz  to
unleash the fury of a hundred tiny files, all disappearing into another
subfolder of equally lengthy name.  I changed directories into this new
folder, and typed
./configure
The program created a number of tables, a reminder to change passwords, a
bug-reporting message, and a one-liner about how to test if MySQL is up and
running.  The final message states that mysqld daemon ended.

At this point, thought, I would have thought the prompt should return, but
it never does.  Until I hit the enter key.

The instructions say type
make
at which time my computer tells me there are no targets.  !  ???  Huh?

Way past the abilities of this greenhorn.

Any ideas?  I'd appreciate any input or suggestions.  Thank you.

Kev
workmonster at home dot com

And that's where everything grinds to a halt.

 
 
 

MySQL on Linux .......

Post by Peartre » Thu, 06 Jul 2000 04:00:00


you downloaded a binary version tarball. go get the rpm if you are a
newbie. if you REALLY want to know what's going on tho, go get the
source tarball, mysql-3.22.32.tar.gz

untar it, run ./configure --prefix=/usr/local ; make ; make
install ; ./scripts/mysql_install_db ; mysqladmin -u root
password 'PASSWORD'

that's just the start.



Quote:> The first part of this post is a request for directions to the best
> newsgroup:  where do I go for questions about MySQL on Linux
installation
> problems?

> I'll toss in the second part, because my problem seems of a general
nature.
> I'm a totally-green newbie trying to get MySQL working on Mandrake
7.0.  For
> reference, it's a fairly modern box with lots of memory.  Following
> directions that seem standardized from several sources, I've
downloaded the
> file mysql-3.22.32-pc-linux-gnu-i686.tar.gz
> and plopped it into the following directory:
> /usr/local/mysql
> I used the command tar xzvf mysql-3.22.32-pc-linux-gnu-i686.tar.gz  to
> unleash the fury of a hundred tiny files, all disappearing into
another
> subfolder of equally lengthy name.  I changed directories into this
new
> folder, and typed
> ./configure
> The program created a number of tables, a reminder to change
passwords, a
> bug-reporting message, and a one-liner about how to test if MySQL is
up and
> running.  The final message states that mysqld daemon ended.

> At this point, thought, I would have thought the prompt should
return, but
> it never does.  Until I hit the enter key.

> The instructions say type
> make
> at which time my computer tells me there are no targets.  !  ???  Huh?

> Way past the abilities of this greenhorn.

> Any ideas?  I'd appreciate any input or suggestions.  Thank you.

> Kev
> workmonster at home dot com

> And that's where everything grinds to a halt.

Sent via Deja.com http://www.deja.com/
Before you buy.

 
 
 

MySQL on Linux .......

Post by rivet » Thu, 06 Jul 2000 04:00:00


Thanks, Peartree
I guess I'm confused about all the different versions.
I'm working through a binary install right now, following instructions from
the MySQL site.  It's poorly written, as it gives no hints at all as to what
we should enter for a Path command.
I'm guessing here, but if it were a DOS command, it would roughly equal:
path=/usr/local/mysql/mysql
Would this be correct for a Linux entry?

Thanks.  If this doesn't work, I'll give the source tarball a try.

Kev


> you downloaded a binary version tarball. go get the rpm if you are a
> newbie. if you REALLY want to know what's going on tho, go get the
> source tarball, mysql-3.22.32.tar.gz

> untar it, run ./configure --prefix=/usr/local ; make ; make
> install ; ./scripts/mysql_install_db ; mysqladmin -u root
> password 'PASSWORD'

> that's just the start.



> > The first part of this post is a request for directions to the best
> > newsgroup:  where do I go for questions about MySQL on Linux
> installation
> > problems?

> > I'll toss in the second part, because my problem seems of a general
> nature.
> > I'm a totally-green newbie trying to get MySQL working on Mandrake
> 7.0.  For
> > reference, it's a fairly modern box with lots of memory.  Following
> > directions that seem standardized from several sources, I've
> downloaded the
> > file mysql-3.22.32-pc-linux-gnu-i686.tar.gz
> > and plopped it into the following directory:
> > /usr/local/mysql
> > I used the command tar xzvf mysql-3.22.32-pc-linux-gnu-i686.tar.gz  to
> > unleash the fury of a hundred tiny files, all disappearing into
> another
> > subfolder of equally lengthy name.  I changed directories into this
> new
> > folder, and typed
> > ./configure
> > The program created a number of tables, a reminder to change
> passwords, a
> > bug-reporting message, and a one-liner about how to test if MySQL is
> up and
> > running.  The final message states that mysqld daemon ended.

> > At this point, thought, I would have thought the prompt should
> return, but
> > it never does.  Until I hit the enter key.

> > The instructions say type
> > make
> > at which time my computer tells me there are no targets.  !  ???  Huh?

> > Way past the abilities of this greenhorn.

> > Any ideas?  I'd appreciate any input or suggestions.  Thank you.

> > Kev
> > workmonster at home dot com

> > And that's where everything grinds to a halt.

> Sent via Deja.com http://www.deja.com/
> Before you buy.

 
 
 

MySQL on Linux .......

Post by Webmast » Sat, 08 Jul 2000 04:00:00




Quote:> Thanks, Peartree
> I guess I'm confused about all the different versions.
> I'm working through a binary install right now, following instructions from
> the MySQL site.  It's poorly written, as it gives no hints at all as to what
> we should enter for a Path command.
> I'm guessing here, but if it were a DOS command, it would roughly equal:
> path=/usr/local/mysql/mysql
> Would this be correct for a Linux entry?

> Thanks.  If this doesn't work, I'll give the source tarball a try.

> Kev

I guess that they don't tell you much about the path as it's assumed you are
a little familiar with that sort of thing.

Now, I'd advise against using the source if this is your first experience
with such, unless of course your name is Luke. Wait, that's Force :-)

A good way to install the binaries is as follows:

1 Put the tarball in /usr/local
2 Unpack it which will create a sundirectory /usr/local/mysql.version
3 Symbolically link this to /usr/local/mysql
4 Symbolically link the executables you will need from /usr/local/mysql/bin
to the same names in /usr/local/bin (which should already be in your path).
The files you'll need for sure are mysql, mysqladmin, mysqlshow and
mysqldump; select others as required

This way when you upgrade mysql, you only have to modify the link to
/usr/local/mysql and all the rest follows suit; also if you have to compile
something else that requires mysql libraries you'll find it easier to
remember the directory name.

Then you can run the startup script and start playing with mysql

Cheers
--
David Robley                        | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES  | http://www.nisu.flinders.edu.au/
AusEinet                            | http://auseinet.flinders.edu.au/
            Flinders University, ADELAIDE, SOUTH AUSTRALIA

 
 
 

1. Apache / PHP4 / MySql Problem - Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock'

I have a fresh installation of OpenBSD 3.2.  I have not made any
alterations to the base installation.  I enabled Apache via rc.conf
and tested (I also enabled server-status & server-info in httpd.conf).

I installed PHP4 from the packages tree at 3.2/Packages.  I configured
according to the instructions at webmonkey and tested with phpinfo().
I integrated with Apache and tested with the sample php3 script shown
below:

<html>
<body>
<?php
$myvar = "Hello Adam";
echo $myvar;
?>
</body>
</html>

which worked fine. (Returned "Hello Adam")

I then installed mysql from the package currently in 3.2/Packages with
its supporting packages (p5-DBD-1.30, mysql-client-3.23.54,
p5-DBD-Mssql-Mysql-1.22.19, libiconv-1.8, gettext-0.10.40 and
recode-3.6).  I enabled MySQL to start at reboot using the
instructions at http://www.hostbaby.com/misc/mysql-openbsd.html.
After a reboot, mysql starts on port 3306 w/a PID of 8643.  I set the
password, created a test database and verified the functionality of
the base databases.

I added the php4-mysql-4.2.3 package to enable integration with MySql
and verified that phpinfo() returns MySQL integration successfully,
which it does.

I prepared the following script in /var/www/htdocs (named test2.php3):
<html>
<body>
<?php
$db = mysql_connect("localhost", "root");
mysql_select_db("mydb",$db);
$result = mysql_query("SELECT * FROM employees",$db);
printf("First Name: %s<br>\n", mysql_result($result,0,"first"));
?>
</body>
</html>

When I open my browser to http://target_Svr/test2.php3, I get the
following

Warning: Can't connect to local MySQL server through socket
'/var/run/mysql/mysql.sock' (2) in /htdocs/test2.php3 on line 7

Warning: MySQL Connection Failed: Can't connect to local MySQL server
through socket '/var/run/mysql/mysql.sock' (2) in /htdocs/test2.php3
on line 7

Warning: mysql_select_db(): supplied argument is not a valid
MySQL-Link resource in /htdocs/test2.php3 on line 9

Warning: mysql_query(): supplied argument is not a valid MySQL-Link
resource in /htdocs/test2.php3 on line 11

Warning: mysql_result(): supplied argument is not a valid MySQL result
resource in /htdocs/test2.php3 on line 13
First Name:

So, I rolled over to /var/run/mysql and noticed that mysql.sock did
exist with filesize 0.

I have been searching and working on this for over a week, any help
would be greatly appreciated.  Top it off, its for a non-profit org
that I decided to help out.. so its a good cause.

2. What's the best open source architecture for thin client (web) apps?

3. start mysql database as mysql instead of root

4. VLB EIDE Controller Card with Enhanced BIOS

5. Can't connect to local MySQL server through socket '/tmp/mysql.sock'

6. 'linux' : unknown terminal type

7. mysql with c, cant find declaration of mysql-functions...

8. Source Code Configuration Management

9. Can't connect to local MySQL server through socket '/tmp/mysql.sock'

10. mySQL: where is mysql-server.sh?

11. Mysql and Mysql.pm

12. Only user "root" and "mysql" can connect to mysql?

13. PHP/MySQL "mysql.sock" not found ???