Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-27-2005, 06:13 AM   #1
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, 06:31 AM   #2
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, 06:52 AM   #3
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

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

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

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

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

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


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 12:53 PM
bash: <command name> command not found smash Programming 5 03-13-2006 09:48 AM
mysqld: Command not found bshearer *BSD 4 04-15-2005 04:50 PM
Why does mysqld not show up w/ps command baandar Linux - Software 3 09-01-2004 03:21 AM
mysqld command - help eduac Linux - Software 12 07-01-2003 02:15 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:48 AM.

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