LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices



Reply
 
Search this Thread
Old 05-28-2003, 07:41 AM   #1
bad_cmd/filenam
LQ Newbie
 
Registered: Apr 2003
Distribution: Mandrake 9.2
Posts: 15

Rep: Reputation: 0
Custom MySQL 4 error messages


Is it possible to display a custom message when a user gets an access denied error in mysql 4?
 
Old 05-28-2003, 07:52 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
I think that you would have to handle this yourself in the applcation that you are writing. So you would turn off the default error reporting, check for any errors yourself, then return a custom message that way. What language are you using?

cheers

Jamie...
 
Old 05-29-2003, 05:44 AM   #3
bad_cmd/filenam
LQ Newbie
 
Registered: Apr 2003
Distribution: Mandrake 9.2
Posts: 15

Original Poster
Rep: Reputation: 0
I'm not, I was just wondering but thanks anyway
 
Old 05-29-2003, 06:50 AM   #4
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
You could probably just edit the source to change the messages then rebuild if you wanted to effect the entire server.

Jamie...
 
  


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
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 09:44 AM
Custom Kernel, Error Messages, But It's Working, Confused. jlacroix Ubuntu 5 09-17-2005 07:24 PM
From where am i getting error messages to /var/log/messages? prabhuacsp Programming 3 02-16-2005 09:59 AM
Postfix custom messages fbennett Linux - Software 4 04-24-2003 06:33 PM
custom messages plisken Linux - General 1 01-31-2003 05:37 PM


All times are GMT -5. The time now is 11:36 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration