LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 12-19-2007, 09:23 PM   #1
zlbmm007
LQ Newbie
 
Registered: Dec 2007
Posts: 5

Rep: Reputation: 0
Unhappy /tmp/mysql.sock not found


Hi ~
i am a Linux newbie. after i update Mysql'password, when i restart mysqlserver ,the shell show '/tmp/mysql.sock not found'.
if not restart mysqlserver, tomcat server isnt start....

Hope someone help......hurry.
 
Old 12-19-2007, 09:50 PM   #2
Acron_0248
Member
 
Registered: Feb 2006
Location: Venezuela
Distribution: Gentoo
Posts: 453

Rep: Reputation: 33
Hi,


Are you sure that you only update mysql root's password? (or the password of whatever user you've as DBA)

You should check the my.cnf, verify that 'socket' configuration is right.

Also, telling something about the linux distribution you're using will be helpfull to guide you if you need it




Regards
 
Old 12-20-2007, 01:16 AM   #3
zlbmm007
LQ Newbie
 
Registered: Dec 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Thinks your reply

I an sure that i was only update mysql root's password.

this is my 'my.cnf' configuration about mysql:

# The MySQL server
[mysqld]
port = 3306
socket = /tmp/mysql.sock
skip-locking
key_buffer = 16M
.....
.....

when i revert to the old root'password ,mysql can start.tomcat can start too.
install afresh myssql and tomcat? my Linux system was installed apache2.2+tomcat5.5+php5+mysql5+j2sdk1.6

in advance of Christmas day ,bless everybody Merry Christmas and best wishes for happy new year.
 
Old 12-20-2007, 04:15 PM   #4
Acron_0248
Member
 
Registered: Feb 2006
Location: Venezuela
Distribution: Gentoo
Posts: 453

Rep: Reputation: 33
Either you're setting some weird password (alpha numeric + uncommon symbols + who knows) or you're not setting the new password right.

You could try using some easy password, nothing fancy (just to try) and then check if the error is the same.

Or read the mysql documentation regarding to your version of mysql to verify that your taking the right steps to update the mysql root's password. From version to version, this steps may change.




Regards
 
Old 12-20-2007, 11:40 PM   #5
zlbmm007
LQ Newbie
 
Registered: Dec 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Question

Last login: Fri Dec 21 13:37:37 2007 from ***.***.***.***
but.. my new password only use number.
now , the shell show some mistake:

-bash: xport: command not found
-bash: /C:\log\erro.2007-09-09: Permission denied
-bash:      export: command not found
-bash: id: command not found
-bash: id: command not found
-bash: id: command not found
-bash: [: too many arguments
-bash: tput: command not found
-bash: tput: command not found
-bash: wc: command not found
-bash: [: : integer expression expected
[root@ud010 root]# ls
-bash: ls: command not found
[root@ud010 root]#


when i use some baseic command ,the shell show 'command not found' why??
 
Old 12-21-2007, 12:25 AM   #6
Acron_0248
Member
 
Registered: Feb 2006
Location: Venezuela
Distribution: Gentoo
Posts: 453

Rep: Reputation: 33
O_o

Well, I don't know why that's happening, don't know what change you've made, I could guess that you have messed with the bash profile or something, you try something like:
Code:
# export PATH=/bin:/usr/bin:/sbin:/usr/sbin
You could also check if it's a path problem using complete paths to binaries, like:
Code:
# /bin/ls
But as I said, I'm just guessing, I don't know what you did before the problem started so that's info you'll have to add here




Regards
 
Old 12-23-2007, 11:19 PM   #7
zlbmm007
LQ Newbie
 
Registered: Dec 2007
Posts: 5

Original Poster
Rep: Reputation: 0
Smile

Thinks your reply aagain, the problem is unravel. After perform thi Code
,that's OK.
Code:
---------
# export PATH=/bin:/usr/bin:/sbin:/usr/sbin
---------
 
  


Reply



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
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) cygnus-x1 Linux - Software 2 06-05-2008 01:14 PM
Buzilla issue: "Can't connect to local MySQL server through socket '/tmp/mysql.sock'" vitopn Linux - General 3 05-21-2007 10:13 AM
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) Splenden Linux - Server 1 04-05-2007 08:34 PM
MySQL 3.23.58-14 installation prolem - mysql.sock not found lightcom Linux - Software 4 02-23-2005 12:46 AM
can't connect to mysql through socket '/tmp/mysql.sock' Boby Programming 2 05-23-2004 01:32 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:20 AM.

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
Open Source Consulting | Domain Registration