LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-04-2009, 06:44 AM   #1
rajesh84210
Member
 
Registered: Jul 2009
Posts: 53

Rep: Reputation: 15
error unknown column 'xxx' in field list


Dear Experts,
Am using mysql .Under some operation,I get an error "unknown colunm 'column name' in 'field list' ". i would like to know what 'field list' indicates.. i see in the database that there is no such table which reads 'field list'.Any help is greatly appreciated.
 
Old 09-04-2009, 07:19 AM   #2
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
'field list' is quoted, most probably because it comes directly from the SQL command that is causing the error.
You need to look at the script that triggers the error and you should find something like that:
Code:
SELECT column name FROM field list
This is obviously a wrong copy/paste from some documentation that someone did but forgot to replace with the actual values.
 
Old 09-07-2009, 03:46 AM   #3
rajesh84210
Member
 
Registered: Jul 2009
Posts: 53

Original Poster
Rep: Reputation: 15
"You need to look into the script that causes the error".. could you pls explain elobarately what you meant.. i use openser server and i get this error. iam pasting the confgiguration file . this file is being read and the errors must be coming from this .The command i use is "kamailio start" in linux.

Thanks in advance.


mpath="/usr/local//lib/kamailio/modules/"
loadmodule "db_mysql.so"

loadmodule "textops.so"

loadmodule "sl.so"
loadmodule "maxfwd.so"
loadmodule "imc.so"
loadmodule "tm.so"
loadmodule "xlog.so"
loadmodule "registrar.so"
loadmodule "usrloc.so"
loadmodule "mi_fifo.so"

# ----------------- setting module-specific parameters ---------------

# -- mi_fifo params --

modparam("mi_fifo", "fifo_name", "/tmp/openser_fifo")

# -- usrloc params --

modparam("usrloc", "db_mode", 2)

# -- registrar params --

modparam("registrar", "default_expires", 120)

# -- registrar params --

modparam("usrloc", "db_mode", 0)

# -- imc params --
modparam("imc", "imc_cmd_start_char", "#")
modparam("imc|usrloc", "db_url", "mysql://openserpenserrw@192.168.64.75/openser")

# -- tm params --

modparam("tm", "fr_timer", 10 )
modparam("tm", "fr_inv_timer", 15 )
modparam("tm", "wt_timer", 10 )


route{
if ( !mf_process_maxfwd_header("10") )
{
sl_send_reply("483","To Many Hops");
drop();
};

# registrations -
if(is_method("REGISTER")) {
save("location");
exit;
}

#imc##if(uri=~"sip:q.*@")
if(uri=~"sip:chatroom000@192.168.64.75")
{
# IMC - message
##imc## xdbg("script: message from [$fu] r-uri [$ru] msg [$rb]\n");
xdbg("script: message from [$fu] chatroom000 [$ru] msg [$rb]\n");

if(is_method("MESSAGE"))
{
log("MESSAGE received -> processing with imc\n");
sl_send_reply("200", "ok");
imc_manager();
exit;
} else {
sl_send_reply("404", "not found");
exit;
};
} else {
##edited as below for imc xdbg("script: message not for room, from [$fu] r-uri [$ru] msg [$rb]\n");
xdbg("script: message not for room, from [$fu] chatroom000 [$ru] msg [$rb]\n");

if(!lookup("location"))
{
sl_send_reply("404", "not found");
exit;
}
t_relay();
#sl_send_reply("200", "ok");
exit();
};
}
 
Old 09-07-2009, 04:43 AM   #4
Agrouf
Senior Member
 
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
Please post the full error reported by 'kamailio start'
 
Old 09-07-2009, 11:22 PM   #5
rajesh84210
Member
 
Registered: Jul 2009
Posts: 53

Original Poster
Rep: Reputation: 15
The following is the error message i get when i give kamailio start

ERROR:usrloc:bind_usrloc: configuration error - trying to bind to usrloc module before bein
g initialized
Sep 8 09:54:32 [14860] ERROR:core:init_mod: failed to initialize module registrar
Sep 8 09:54:32 [14860] ERROR:core:main: error while initializing modules


Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
"Error, some other host already uses address XXX.XXX.XXX.XXX" mwbb_support Linux - Networking 5 01-20-2014 08:59 AM
Error, some other host already uses address xxx.xxx,xxx,xxx ryan462 Linux - Networking 20 01-24-2010 11:14 PM
http://www.spamhaus.org/query/bl?xxx.xxx.xxx.xxx (Server cannot send email now!) RMLinux Linux - Server 3 05-08-2009 02:06 AM
selecting particular field/column in file raghu123 Programming 3 08-13-2008 01:31 AM
Host XXX.XXX.XXX.XXX is not allowed to connect to this MySQL server ocavid Linux - Newbie 2 03-16-2005 09:40 AM


All times are GMT -5. The time now is 06:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration