Gossamer Forum
Home : Products : Others : MySQLMan :

syntax error

Quote Reply
syntax error
I'm trying to run MysqlMan and show fllwing error

CGI ERROR
==========================================
Error Message : Error loading required libraries.
Check that they exist, permissions are set correctly and that they compile.
Reason: syntax error at ../cgi-bin//mysql.cfg line 45, near "script_url"


My config file is..

BEGIN {
use vars qw/$script_path/;
$0 =~ m,(.*?)[^/\\]+$, ? ($script_path = $1) : ($script_path = '.');
}
$script_path = '/home/x-info/www/cgi-bin/';


# --------------------------
# CONFIG HASH |
# --------------------------

%config = "http://www.x-info.com/cgi-bin/"

# FILES
# --------------------------------------------------------
# the URL to support.cgi. No Trailing Slash Please.
# You can set it as "mysql.cgi" to make it relative.
script_url => "mysql.cgi",

# The URL to home/top. It is used for the link TOP on each page.
home_url => "http://www.x-info.com",

# The PATH to the template directory.
template_dir => $script_path . "../templates",


Some body can help me ??

Luis

Quote Reply
Re: syntax error In reply to
Hello Luis,

If you take out all the comments in mysql.cfg, you can see that %config is basically:

%config = (
script_url => "http://192.168.1.9/mysqlman/mysql.cgi",
home_url => "http://www.gossamer-threads.com",
template_dir => $script_path . "/templates",
page_length => 20,
...etc...
);

You will need to change the value of each index of %config as necessary; however, you do not need to assign anything to %config itself.

Cheers,

--
Gossamer Threads, Inc.
Quote Reply
Re: syntax error In reply to
Thank, Cheer
With your help is working.
Now I have other matter... if I try to export the system respond:
"Permission to perform action denied. Please enter your user name and password "

Do you know what happen ?

Luis

Quote Reply
Re: syntax error In reply to
Export is just a frontend for mysql's SELECT ... INTO OUTFILE 'file_name' form of SELECT and writes the selected rows to a file. The file is created on the server host, and cannot already exist (among other things, this prevents database tables and files such as `/etc/passwd' from being destroyed). You must have the FILE privilege on the server host to use this form of SELECT

--
Gossamer Threads, Inc.