LinuxQuestions.org
Help answer threads with 0 replies.
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 05-27-2005, 05:13 AM   #1
ojav
LQ Newbie
 
Registered: May 2005
Location: Finland
Distribution: Sol
Posts: 7

Rep: Reputation: 0
mysqld command not found


I'm trying to insert cyrillic characters to mysql database. I was adviced that I should
start server, create a table, insert some data after setting 'default-character-set' parameter in [mysqld] section of my.cnf on linux.

I wrote a command:
mysqld --default-character-set=koi8_ru

but a funny thing happened: I got a message "mysqld: command not found".
How is this possible? mysqld is there in /etc/rc.d/bin -folder. And if it weren't, then mysql could not work at all! Right? And mysql is running allright. So how come the command "mysqld" causes such a message (I did try with other parameters like "mysqld -V", but with the same sesult).

Should I first stop the mysql server from running? But I don't find a suitable command to do that. And shouldn't "mysqld -V" work even if the mysql server is running?

Once this problem will (?) be resolved, I'll face another. I don't find anything which would even remotely look like "my.cnf". Should there be something like that in my Linux?
 
Old 05-27-2005, 05:31 AM   #2
buskmann
LQ Newbie
 
Registered: Mar 2005
Location: Norway
Distribution: FC5
Posts: 27

Rep: Reputation: 15
Issue these command $ echo $PATH and $ locate mysqld
If the location of the second not is contained in the first, you have to add it or use the full path when referring to mysqld.
 
Old 05-27-2005, 05:52 AM   #3
ojav
LQ Newbie
 
Registered: May 2005
Location: Finland
Distribution: Sol
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for a quick reply!

I got a little further ahead, but still some problem remains.

I gave a command "/etc/rc.d/bin/mysqld -V", but I got a message "usage: /etc/rc.d/bin/mysqld up|down". Well, this is how I learned to stop and restart mysql, but still I don't know how to give a parameter to "mysqld".

"man mysqld" shows a lot of parameters, including the one (--default-character-set) which I want to use, but the response to my command suggests that only parameters "up" and "down" are acceptable. There's obviously something I don't quite grasp. Will you please enlighten me still a bit more



?????????!
YIPPEEEE!
I fiddled some more with mysqld -command and I managed to do what I wanted!
Thanks

Last edited by ojav; 05-27-2005 at 06:29 AM.
 
Old 05-27-2005, 07:35 AM   #4
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 11,843

Rep: Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596Reputation: 1596
*Deleted* since you found the solution

Last edited by bathory; 05-27-2005 at 07:38 AM.
 
Old 05-27-2005, 07:46 AM   #5
perfect_circle
Senior Member
 
Registered: Oct 2004
Location: Athens, Greece
Distribution: Slackware, arch
Posts: 1,783

Rep: Reputation: 52
Anyway, the default command to start mysql deamon is mysqld_safe.
There is no mysqld command, at least in the official version of mysql.
 
  


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
mysqld running and reading for connections on port 3306, no port 3306 found from scan darkenigmaa Linux - Networking 10 07-13-2016 11:53 AM
bash: <command name> command not found smash Programming 5 03-13-2006 08:48 AM
mysqld: Command not found bshearer *BSD 4 04-15-2005 03:50 PM
Why does mysqld not show up w/ps command baandar Linux - Software 3 09-01-2004 02:21 AM
mysqld command - help eduac Linux - Software 12 07-01-2003 01:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:58 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