Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > MySQL
|
MySQL General discussion about the MySQL database.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the MySQL section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 18th, 2003, 08:38 AM
Registered User
 
Join Date: Nov 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Setting up the root account

I have completed MySQL installation on my windows machine .I can navigate to C:\mysql\bin directory .When I use " >mysqladmin -uroot password abcdef " ,to set up admin user name and password this error is shown:
mysqladmin: connecting to server at'localhost' faild
error: access denied for user: 'root@localhost' (Using password: NO)'

But I can connect to the data base by usinig only username and not any password .And the result is that I can not USE the mysql data base ,however I can use the test database.

Note that I am the administrater of this machine and both the server and the client are installed on my machine.

Thanks in advance.
 
Old November 18th, 2003, 10:11 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

najib

You need to do...

mysqladmin -u root -p command

then enter the mysql password when prompted.

Note: you _can_ specifiy the password on the command line, but then anyone running 'top' or otherwise watching the processes on the box will see the password in the command arguments displayed.


-Vijay G





Similar Threads
Thread Thread Starter Forum Replies Last Post
root directories BrendonMelville Linux 2 December 14th, 2006 08:44 AM
Where is my IUSR Account? rit01 Classic ASP Basics 1 December 4th, 2005 05:20 PM
Getting Root Password harsh_hot Linux 1 September 11th, 2005 03:57 PM
Square root Ashleek007 C++ Programming 3 December 12th, 2004 04:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.