Randall R Schulz wrote:

Jim,

On Saturday 17 June 2006 19:49, Patrick Shanahan wrote:
* jim tate <[EMAIL PROTECTED]> [06-17-06 22:13]:
running app. and getting error;
"Can't connect to local MySql server through socket
/var/lib/mysql/mysql.sock"

The path /var/lib/mysql is there but no /mysql.sock , what do I
have to do in MySql to get /mysql.sock ?
is the service, mysql, running?

as root:  rcmysql status
if not:   rcmysql start

It's not necessary to be root to check the status with "rcmysql status" (thought either /usr/sbin must be in your PATH or you must give the fully qualified path name, "/usr/sbin/rcmysql"). And, of course, you _do_ need to be root to alter the status (i.e., to use the verbs "start", "stop", "restart", "reload", "try-restart" or "force-reload").


Randall Schulz

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Yes, the problem was mysql daemon wasn't running, but it is now.
I'am trying to set password in MySql without any luck, as follows;

shell> *|mysql -u root|*
mysql> *|SET PASSWORD FOR 'root'@'localhost' = PASSWORD('/|mary|/');|*
mysql> *|SET PASSWORD FOR 'root'@'/|linux|/' = PASSWORD('/|mary|/');


[EMAIL PROTECTED] is computer hostname.
PASSWORD is 'mary'|*

now if I type in: *|mysql -u root
ERROR 1045 (28000) : Access denied for user 'root'@'localhost' (using password: 
NO)

I'am following the online MySql Setup Password instructions.

Jim
|*



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to