This is a pretty common thing after a MySql install on various platforms.
I see form your my.cf file that both client and deamon are using the same socket, so that's good!
Looks like it might be a permissions problem, then.
Can you show the output of "ls -l" from the /tmp folder please?
Also ensure that mysqld is actually running.
and also I m not able to see mysqld running in my "ps" command.
It looks like your mysql daemon is not running.
There is some clue at the top of your console output that the mysql daemon has ended.
You can try running mysql start from the terminal, but I can't tell you exactly where it will be.
You can find it with this command:
find / -name "mysqld"
Then, assuming it was at /etc/init.d you would type /etc/init.d/mysqld start
Or substitute the path where it was found.
What's happened here is that you have used 'cd' to change into the directory and then used 'mysql start' to run the daemon, however linux is a bit fussier than windows and dos and you need to specify the path, even if you are already in the correct directory.
Simply change mysqld start to ./mysqld start when you are in the correct directory.
Ah, so mysql does not like being run as root, and of course you are logged in as root when you log in at the console.
Have you tried simply re-booting the galieo? It might get started automatically then.
If not, you can run mysqld as another user, try this:
./mysqld -u kernel
I'm not sure if that will work as I don;t have mysql on my Galileo to try it.
However if you start mysql from the command prompt, it will most likely get killed when you log out.
You should try re-booting Galileo and if that doesn't work you should try looking at why mysqld isn;t getting started at boot time.
There are actually two problems I can see on this screenshot, they cause mysqld to bail out right after starting.
First one is that /etc/my.cnf is world-writeable and mysqld doesn't like that. Run "chmod 755 /etc/my.cnf" to fix that.
Second one is more serious - there's no "mysql" user, which it tries to use by default. You need to create one manually. Run "useradd -m -r -s /bin/true mysql" to do that. After that change the owner of the runtime/database dir I see on your screenshot to that new user: "chown -R mysql /var/mysql".
And just to make it clear, to start the service, you need to run "/etc/init.d/mysqld start", no need to be in that dir, just provide the full path.
Well, you still don't have the mysql user created, as I mentioned in my earlier post. You need to create it first, see command example I've provided there. And you'll need to make this user the owner of /var/mysql dir, command o do that is in the same post