From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Padiyath Sreekumaran Newsgroups: gmane.os.tru64.managers Subject: MySQL Installation help - Cannot change root password Date: Wed, 19 Sep 2007 13:48:40 +0200 Message-ID: <7CEC17D947D6FE43AD74F247161105E4E0C023@MAILBOX0B.psi.ch> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1190202635 20170 80.91.229.12 (19 Sep 2007 11:50:35 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 19 Sep 2007 11:50:35 +0000 (UTC) To: tru64-unix-managers@ornl.gov Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Wed Sep 19 13:50:31 2007 Return-path: Envelope-to: gotm-tru64-unix-managers@gmane.org Original-Received: from sws1.ornl.gov ([160.91.1.101]) by lo.gmane.org with smtp (Exim 4.50) id 1IXy4a-0003ew-So for gotm-tru64-unix-managers@gmane.org; Wed, 19 Sep 2007 13:50:29 +0200 Original-Received: (qmail 9865 invoked by uid 49509); 19 Sep 2007 11:50:11 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 9855 invoked by uid 49501); 19 Sep 2007 11:50:11 -0000 Original-Received: from 160.91.4.110 by sws1 (envelope-from , uid 49491) with qmail-scanner-1.25 (clamdscan: 0.83/743. spamassassin: 3.0.2. Clear:RC:0(160.91.4.110):SA:0(-2.5/5.0):. Processed in 2.898288 secs); 19 Sep 2007 11:50:11 -0000 X-Spam-Status: No, hits=-2.5 required=5.0 Original-Received: from emroute3.ornl.gov (160.91.4.110) by sws1.ornl.gov with SMTP; 19 Sep 2007 11:50:08 -0000 Original-Received: from emroute3.ornl.gov ([127.0.0.1]) by emroute3.ornl.gov (PMDF V6.3-x11 #31501) with ESMTP id <0JOM005QM67KJX@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 19 Sep 2007 07:50:08 -0400 (EDT) Original-Received: from CONVERSION-DAEMON.emroute3.ornl.gov by emroute3.ornl.gov (PMDF V6.3-x11 #31501) id <0JOM0070167JUF@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 19 Sep 2007 07:50:07 -0400 (EDT) Original-Received: from VIRUSCAN-DAEMON.emroute3.ornl.gov by emroute3.ornl.gov (PMDF V6.3-x11 #31501) id <0JOM0070366YS8@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 19 Sep 2007 07:50:07 -0400 (EDT) Original-Received: from MAILSEND01.psi.ch (mailsend01.psi.ch [129.129.191.53]) by emroute3.ornl.gov (PMDF V6.3-x11 #31501) with ESMTP id <0JOM006BA658F1@emroute3.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 19 Sep 2007 07:49:46 -0400 (EDT) Original-Received: from MAILBOX0B.psi.ch ([129.129.190.194]) by MAILSEND01.psi.ch with Microsoft SMTPSVC(6.0.3790.1830); Wed, 19 Sep 2007 13:48:43 +0200 X-Envelope-from: kumar.padiyath@psi.ch X-MIMEOLE: Produced By Microsoft Exchange V6.5 Thread-Topic: MySQL Installation help - Cannot change root password Thread-Index: Acf6swYDnHNvMl/cTTK3TeYAcaPbfw== Content-class: urn:content-classes:message X-Spam-Virus: No X-Spam-Checker-Version: SpamAssassin 3.2.3 (2007-08-08) on email.ornl.gov X-Spam-Level: X-Qmail-Scanner-MOVED-X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,SPF_PASS autolearn=ham version=3.2.3 X-MS-Has-Attach: X-MS-TNEF-Correlator: X-OriginalArrivalTime: 19 Sep 2007 11:48:43.0585 (UTC) FILETIME=[0788E310:01C7FAB3] Xref: news.gmane.org gmane.os.tru64.managers:9233 Archived-At: Hello, Since I had problems with my previous MySQL installation anf phpMyAdmin I have installed the new version of MySQL(Ver 8.41 Distrib 5.0.22) from Internet Express version 6.6 for Tru64 CD.I have installed only MySQL from the CD on my Tru64 OS V5.1A machine.The installation went without any problems as given in the following output: "The latest information about MySQL is available on the web at http://www.mysql.com done ***************************************************** Internet Express IAEMYSQL660 installation completed successfully. ***************************************************** Configuring "MySQL v5.0.22" (IAEMYSQL660) Starting MySQL . SUCCESS!=20 PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: /usr/internet/mysql/bin/mysqladmin -u root password 'new-password' /usr/internet/mysql/bin/mysqladmin -u root -h machine.psi.ch password 'new-password' See the manual for more instructions." So I tried the following commands to set the password without any success: TEST1 ----- /usr/internet/mysql/bin/mysqladmin -u root password 'test01' /usr/internet/mysql/bin/mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: NO)' TEST2 ------ /usr/internet/mysql/bin/mysqladmin -u 'root' password 'test01' /usr/internet/mysql/bin/mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: NO)' TEST3 ----- /usr/internet/mysql/bin/mysql -u 'root'@'localhost' Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 48 to server version: 5.0.22-log Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> set password for 'root'@'localhost'=3Dpassword('test01'); ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql' mysql> TEST4 (running test cases) ----- /usr/local/mysql>bin/mysqltest mysqltest: Could not open connection 'default': 1045 Access denied for user 'root'@'localhost' (using password: NO) not ok TEST5 -------- $mysqladmin -u 'root'@'localhost' version bin/mysqladmin Ver 8.41 Distrib 5.0.22, for dec-osf5.1a on alphaev56 Copyright (C) 2000 MySQL AB & MySQL Finland AB & TCX DataKonsult AB This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL license Server version 5.0.22-log Protocol version 10 Connection Localhost via UNIX socket UNIX socket /usr/local/mysql/tmp/mysql.sock Uptime: 7 min 55 sec Threads: 1 Questions: 7 Slow queries: 0 Opens: 0 Flush tables: 1 Open tables: 6 Queries per second avg: 0.015 TEST6 (Process status) ----- $ps auxww|grep mysql mysql 36697 0.0 12.0 98.0M 61M pts/1 S 10:52:56 0:01.57 /usr/internet/mysql/libexec/mysqld = --basedir=3D/usr/internet/mysql --dat adir=3D/usr/local/mysql/var --user=3Dmysql --pid-file=3D/usr/local/mysql/var/test01.psi.ch.pid --port=3D3306 --socket=3D/usr/local/mysql/tmp/mysql.sock root 36678 0.0 0.0 2.68M 240K pts/1 I 10:52:56 0:00.02 /usr/local/mysql/bin/mysqld_safe = --datadir=3D/usr/local/mysql/var --pid- file=3D/usr/local/mysql/var/test01.psi.ch.pid TEST7 ------ I the previous MySQL installation on this machine( mysql-standard-5.0.0-alpha-dec-osf5.1-alphaev67) I never had any such problems. If I execute the following command I can see the default databases. $mysql -u 'root'@'localhost' Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 18 to server version: 5.0.22-log Type 'help;' or '\h' for help. Type '\c' to clear the buffer. mysql> show databases -> ; +--------------------+ | Database | +--------------------+ | information_schema | | test | +--------------------+ 2 rows in set (0.02 sec) What is wrong with my installation? How can I set a password for root? I have the following directories in /usr/local/mysql: $ls -l total 104 drwxr-xr-x 2 mysql mysql 8192 Sep 18 16:01 bin drwxr-xr-x 3 mysql mysql 8192 Sep 18 16:01 include drwxr-xr-x 2 mysql mysql 8192 Sep 18 16:01 info drwxr-xr-x 3 mysql mysql 8192 Sep 18 16:01 lib drwxr-xr-x 2 mysql mysql 8192 Sep 18 16:01 libexec drwxr-xr-x 2 mysql mysql 8192 Sep 18 16:03 logs drwxr-xr-x 3 mysql mysql 8192 Sep 18 16:01 man drwxr-xr-x 7 mysql mysql 8192 Sep 18 16:02 mysql-test drwxr-xr-x 3 mysql mysql 8192 Sep 18 16:03 share drwxr-xr-x 5 mysql mysql 8192 Sep 18 16:03 sql-bench drwxrwx--- 2 mysql mysql 8192 Sep 19 12:10 tmp drwxr-x--- 4 mysql mysql 8192 Sep 19 12:10 var Any help is appreciated?=20 Thanks in advance. Regards, Kumar ------------------------------------------------------------------ Padiyath Sreekumar | Tel: +41.56.310.3643 Paul Scherrer Institut | email: kumar.padiyath@psi.ch AIT | Office: WHGA/U132=20 WHGA/U132 | Fax: +41.56.310.3649 CH-5232 Villigen PSI |=20 Switzerland | -----------------------------------------------------------------