Tuesday, 8 March 2011

my.cnf of mysql in redhat linux MISSING

Hi pal.. if you've installed mysql in redhat linux or any linux system then when you try to search for the configuration file & unfortunately couldn't find my.cnf in /etc folder. don't worry about this problem.. open your shell and try to search any files that has .cnf extension first.

use this command:
cd /
find ./ -type f -name "*.cnf"

find: is a searching command.
./: will start search from a current directory.
-type f : means for file type not directory 
-name : is case sensitive. perform better than -iname which is incase sensitive
"*.cnf" : * means any name which has .cnf as its extension


you may found something like: 
my-huge.cnf <-for huge data try use this file
my-large.cnf
my-small.cnf
(if there is no file of cnf! -> search google and copy it from there)

if you found it, quickly go to that directory
copy it and put it in /etc folder as my.cnf (rename it, in some linux like ubuntu you can find /etc/mysql folder)
stop and restart mysql so that it takes effect.
you may as well change the maximum allowed of data that can be restored in mysql db from my.cnf configuration

Error from eclipse : Could not find the main class: org.apache.catalina.startup.Bootstrap

hi friends.. if you used Eclipse and got this kind of error:
"Could not find the main class: org.apache.catalina.startup.Bootstrap"


the easiest way to repair this error is:
(no need to add any external jar files like tomcat-juli)
1.check your tomcat manually by going to the apache tomcat directory -> bin and run your:
sudo ./run.sh
from your console
2.check if everything is ok and that you can go to the localhost server without error ex: http://locahost:8080/
if ok then shutdown your tomcat by running:
sudo ./shutdown.sh
3.check the eclipse. and if only eclipse have the error of the bootstrap..
4.backup all your important sourcefiles from your eclipse workspace.
5.without hesitation run :
sudo rm -rf workspace/
6.open your eclipse: (of course you will create new directory for workspace)
File->New->Other->Server->choose Server->click Next -> choose your type of apache tomcat.. mine is v6.0 server ->finish...
and start the server...

Saturday, 5 March 2011

First Post: I LOVE GNU/LINUX

hi all! this is my first post! the truth is i am truly linux's fan!! linux is truly unix os alike. im keep thinking about linux! i love linux sooo~~ much. my wish is to write more about linux myself. that's include linux configuration problems, security problems, etc.
hope to see you soon in my next post. thanx :)
anyway im agreed with Richard M Stallman the warrior & father of Gnu project that linux should be called as Gnu/Linux. without Gnu philosophy,license,software i think we wouldn't enjoy linux as we are today..but just to make it easier i will call it as linux.  Thanks and credit also given to Linus Torvalds for his magnificent kernel!
Gnu/Linux roX..~~!!