Bug #49803 Server started by WB but can't stop it as it doesn't realize it
Submitted: 18 Dec 2009 11:38 Modified: 28 Jan 2010 7:55
Reporter: Nidhi Shrotriya Email Updates:
Status: No Feedback Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.2.10 OS:Linux (ubuntu 9.04)
Assigned to: CPU Architecture:Any

[18 Dec 2009 11:38] Nidhi Shrotriya
Description:
Manage server instance -> New -> server4 -> choose connection (TCP/IP, 127.0.0.1, root). Update System Profile -> update 
Mysql start up -> /home/nidhi/mysql-builds/mysql-5.1/bin/mysqld_safe --defaults-file=/etc/my.cnf
Mysql stop -> /home/nidhi/mysql-builds/mysql-5.1/bin/mysqladmin --user=root --socket=/tmp/mysql.sock shut
Check Mysql status -> Leave blank. 

Now go to Server Administration -> choose server4 -> 'shows server is not running' -> click on Start Server -> starts server as seen below 

nidhi@nidhi-laptop:~/mysql-builds/mysql-5.1$ ps -aef|grep mysql
nidhi    24053  6729  0 16:33 pts/1    00:00:00 /bin/bash /usr/bin/mysql-workbench
nidhi    24057 24053  0 16:33 pts/1    00:00:00 /bin/sh /usr/bin/catchsegv /usr/bin/mysql-workbench-bin
nidhi    24059 24057  5 16:33 pts/1    00:00:37 /usr/bin/mysql-workbench-bin
nidhi    24061     1  0 16:33 pts/1    00:00:00 /usr/bin/python /usr/share/mysql-workbench/sshtunnel.py
nidhi    28161 24059  0 16:45 pts/2    00:00:00 /bin/bash -c /home/nidhi/mysql-builds/mysql-5.1/bin/mysqld_safe --defaults-file=/etc/my.cnf 2>&1 > /tmp/tmpgTSUSG; echo CMDRESULT$? >> /tmp/tmpgTSUSG
nidhi    28162 28161  0 16:45 pts/2    00:00:00 /bin/sh /home/nidhi/mysql-builds/mysql-5.1/bin/mysqld_safe --defaults-file=/etc/my.cnf
nidhi    28207 28162  1 16:45 pts/2    00:00:00 /home/nidhi/mysql-builds/mysql-5.1/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/home/nidhi/mysql-builds/mysql-5.1 --datadir=/home/nidhi/mysql-builds/mysql-5.1/var --log-error=/home/nidhi/mysql-builds/mysql-5.1/var/nidhi-laptop.err --pid-file=/home/nidhi/mysql-builds/mysql-5.1/var/nidhi-laptop.pid

But the log says :
--------------------------
2009-12-18 16:45:01 - Trying to start server...
2009-12-18 16:45:32 - Could not open required defaults file: /etc/my.cnf
Fatal error in defaults handling. Program aborted
WARNING: Defaults file '/etc/my.cnf' not found!
Could not open required defaults file: /etc/my.cnf
Fatal error in defaults handling. Program aborted
WARNING: Defaults file '/etc/my.cnf' not found!

2009-12-18 16:45:32 - Checking server status: Server is stopped.

still shows server is stopped and Start server button, so you can't stop it.
All other tabs show 'server is not running'

How to repeat:
As mentioned in description.
[29 Jan 2010 0:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".