[EMAIL PROTECTED] wrote:
>>Description:
>        I have just installed MySQL 4.0.4 on Linux kernel 2.4.2-2 on a
> Hewlett-Packard
>        Kayak machine. I ran the mysql_install_db script with no problems,
> but am unable
>        to create a root password as directed by the script. I have started
> MySQL with
>        ./bin/mysqld_safe & as directed by the script, but when I try to
> create a root
>        user with ./bin/mysqladmin -u root password 'thepword', I get:
>        ./bin/mysqladmin: connect to server at 'localhost' failed
>        error: 'Can't connect to local MySQL server through socket
> '/tmp/mysql.sock' (2)'
>        Check that mysqld is running and that the socket: '/tmp/mysql.sock'
> exists!
> 
>        This is the first install of MySQL on this server (and my first try
> at installing).
> 

Check where is mysql.sock is located and specify path to the socket file with --socket 
option of mysqladmin or add appropriate entry to the my.cnf file.

>        I'm also wondering where you copy the support-files/mysql.server in
> Linux?

Copy it to the /etc/rc.d/init.d:
        http://www.mysql.com/doc/en/Automatic_start.html



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:    http://lists.mysql.com/[EMAIL PROTECTED]

Reply via email to