Gossamer Forum
Home : Products : Others : MySQLMan :

installation help :-(

Quote Reply
installation help :-(
I'd thought I'd check and make sure I can get MysqlMan to work before buying LinksSQL... without success. When I try to open mysql.cgi I get an generic 500 error. I can't figure out what I'm doing wrong, since I've chmod'ed everything as instructed and also tried all 7 versions of Perl currently installed with the same error.

When I run perl -c mysql.cgi I get
Code:
[Mon Oct 23 20:37:26 2000] mysql.cgi: Ambiguous use of select => resolved to "select" => at mysql.cgi line 43.
[Mon Oct 23 20:37:26 2000] mysql.cgi: Value of <HANDLE> construct can be "0"; test with defined() at mysql.cgi line 65535.
[Mon Oct 23 20:37:26 2000] mysql.cgi: Value of <HANDLE> construct can be "0"; test with defined() at mysql.cgi line 65535.
mysql.cgi syntax OK
When I run perl -w mysql.cgi I get a slew of 'ambiguous use of "do"' and then it prompts for name/value pairs.

I also tried uncommenting the $script_path variable, setting it, then commenting out the BEGIN codes in mysql.cfg and mysql.cgi without any luck.

Any idea what I'm doing wrong?

Happy Coding,

--Drew
http://www.FindingHim.com
Quote Reply
Re: installation help :-( In reply to
Hi!

What happens when you type:

./mysql.cgi

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: installation help :-( In reply to
I get the same thing as simply typing 'perl mysql.cgi': a whole bunch of 'Ambiguous use of do => resolved to "do"...' and a name/value prompt.

Happy Coding,

--Drew
http://www.FindingHim.com
Quote Reply
Re: installation help :-( In reply to
Try typing

./perl.cgi 0=0

and see what happens. Is the first thing printed out a Content-type statement? Also, do a perl -v and let me know what version of perl you are running..

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: installation help :-( In reply to
uh... you mean ./mysql.cgi 0=0, right? After all the warnings I get this:
Code:
Set-Cookie: mysqlman_url=http://localhost/./mysql.cgi?0=0
Date: Thu, 26 Oct 2000 03:38:18 GMT
Content-Type: text/html

[Wed Oct 25 22:38:18 2000] mysql.cgi: Use of uninitialized value at ./mysql.cgi
line 2331.
Segmentation fault
I'm using Perl 5.004.04

Happy Coding,

--Drew
http://www.FindingHim.com
Quote Reply
Re: installation help :-( In reply to
Hmm, seg fault? Have you used any other scripts that interact with DBI/DBD::mysql successfully? It's very diffucult to cause a seg fault in perl, and usually indicates a problem with the c modules DBI, DBD::mysql or the mysql libs.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: installation help :-( In reply to
No. However I have tried phpMyAdmin with limited success. Odd: I can't access mysql from telnet anymore... before I could just type 'mysql', but now I get 'authorization denied' and 'using password = no'

I guess I should try and reinstall those modules or upgrade to Perl 5.005 and see what happens (DBI comes bundled doesn't it?).

Happy Coding,

--Drew
http://www.FindingHim.com
Quote Reply
Re: installation help :-( In reply to
No, phpmyadmin wouldn't use the same c libraries as perl scripts, so the fact that it works doesn't guarantee anything.

I would re-install, DBI and DBD::mysql, and make sure the make test on DBD::mysql passes everything.

Cheers,

Alex

--
Gossamer Threads Inc.