473,700 Members | 2,593 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

'Access denied for user 'root'@'localho st' (using password: NO)'


Hi ,
I want to download sql in my linux system......... ..

[root@localhost mydb]# rpm -ivh
MySQL-server-5.0.24a-0.glibc23.i386. rpm MySQL-cl
ient-5.0.24a-0.glibc23.i386. rpm
Preparing... ############### ############### #############
[100%]
package MySQL-client-5.0.24a-0.glibc23 is already installed
package MySQL-server-5.0.24a-0.glibc23 is already installed
[root@localhost mydb]# ls
MySQL-client-5.0.24a-0.glibc23.i386. rpm
MySQL-server-5.0.24a-0.glibc23.i386. rpm
[root@localhost mydb]# rpm -q MySQL-server MySQL-client
MySQL-server-5.0.24a-0.glibc23
MySQL-client-5.0.24a-0.glibc23
[root@localhost mydb]# wget --output-document=pubkey _mysql.asc
http://keyserver. veridis.com:113 71/export?id=-832671895013904 3339
--09:39:42--
http://keyserver.veridis.com:11371/e...18950139043339
=`pubkey_mysql. asc'
Resolving keyserver.verid is.com... failed: Host not found.

[root@localhost mydb]# gpg --keyserver keyserver.verid is.com --recv-key
5072e1f5 gpg: can't get key from keyserver: Resource temporarily
unavailable
gpg: Total number processed: 0
[root@localhost mydb]# gpg --export -a 5072e1f5 pubkey_mysql.as c
[root@localhost mydb]# rpm --import pubkey_mysql.as c
[root@localhost mydb]# mysqladmin -u root password 'sait123'
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localho st' (using password: NO)'

please help me to download sql.........

thankyou.
-raju

Nov 14 '06 #1
7 161303
ra**********@gm ail.com wrote:
I want to download sql in my linux system......... ..
Unless you absolutely need some specific version that can't be found
from the package system of your Linux distribution, for that question,
you get best help from the support forums of your Linux distribution.
For example on Ubuntu, installing MySQL requires this:
sudo apt-get update
sudo apt-get install mysql-server

You can of course do that from GUI also, by searching the mysql server
package and marking it for installation. For other distributions, there
should be as simple methods for them too.
[root@localhost mydb]# mysqladmin -u root password 'sait123'
Try this and it should ask you for the password:

mysqladmin -u root -p

It is not recommended to enter the password directly to the commandline,
as it is visible to other users.
Nov 14 '06 #2

Aggro wrote:
ra**********@gm ail.com wrote:
I want to download sql in my linux system......... ..

Unless you absolutely need some specific version that can't be found
from the package system of your Linux distribution, for that question,
you get best help from the support forums of your Linux distribution.
For example on Ubuntu, installing MySQL requires this:
sudo apt-get update
sudo apt-get install mysql-server

You can of course do that from GUI also, by searching the mysql server
package and marking it for installation. For other distributions, there
should be as simple methods for them too.
[root@localhost mydb]# mysqladmin -u root password 'sait123'

Try this and it should ask you for the password:

mysqladmin -u root -p

It is not recommended to enter the password directly to the commandline,
as it is visible to other users.
hi,
i tried your command. the result is seem's like below .........

[root@localhost mydb]# mysqladmin -u root -p

mysqladmin Ver 8.41 Distrib 5.0.24a, for pc-linux-gnu on i686
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
Administration program for the mysqld daemon.
Usage: mysqladmin [OPTIONS] command command....
-c, --count=# Number of iterations to make. This works with -i
(--sleep) only.
-#, --debug[=name] Output debug log. Often this is 'd:t:o,filename '.
-f, --force Don't ask for confirmation on drop database; with
multiple commands, continue even if an error
occurs.
-C, --compress Use compression in server/client protocol.
--character-sets-dir=name
Directory where character sets are.
--default-character-set=name
Set the default character set.
-?, --help Display this help and exit.
-h, --host=name Connect to host.
-p, --password[=name]
Password to use when connecting to server. If
password is
not given it's asked from the tty.
............... .
............... .....
............... .......

I had following commands also. i got error

[root@localhost mydb]# mysql -uroot -psait123
ERROR 1045 (28000): Access denied for user 'root'@'localho st' (using
password: YES)
[root@localhost mydb]# mysqladmin -u root password 'sait123'
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localho st' (using password: NO)'

tankyou
-raju

Nov 15 '06 #3

Hi ,
I am still having problem in downloading the sql in linux..

[root@localhost mydb]# mysqladmin -u root password 'sait123'
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localho st' (using password: NO)'

Help me for solve above problem.
ThanQ
-raju

Nov 20 '06 #4
I am still having problem in downloading the sql in linux..
>
[root@localhost mydb]# mysqladmin -u root password 'sait123'
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localho st' (using password: NO)'
Does root *ALREADY* have a password? If so, use it (the old one).
Nov 21 '06 #5

Gordon Burditt wrote:
I am still having problem in downloading the sql in linux..

[root@localhost mydb]# mysqladmin -u root password 'sait123'
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localho st' (using password: NO)'

Does root *ALREADY* have a password? If so, use it (the old one).
I dont Know what is that problem. I am able to enter in super user by
using password.

Nov 21 '06 #6
[root@localhost mydb]# mysqladmin -u root password 'sait123'
>mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localho st' (using password: NO)'

Does root *ALREADY* have a password? If so, use it (the old one).

I dont Know what is that problem. I am able to enter in super user by
using password.
Your command line above does not include the old root password.
And from the error message, that's probably why it didn't work.
Nov 22 '06 #7

Gordon Burditt wrote:
[root@localhost mydb]# mysqladmin -u root password 'sait123'
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localho st' (using password: NO)'

Does root *ALREADY* have a password? If so, use it (the old one).
I dont Know what is that problem. I am able to enter in super user by
using password.

Your command line above does not include the old root password.
And from the error message, that's probably why it didn't work.


ok leave my old password. How can i enter by using password in
mysql. I tried to create new password but it give the same problem..
i.e , Acess denied for user root ....
how can i enter in mysql and use mysql.

Nov 22 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
7087
by: red | last post by:
I know this is probably a faq but it is hard to search for this exact problem. When I put this on a php page: <? $link = mysql_connect("localhost", "cardini", "password") or die("Could not connect : " . mysql_error()); echo "Connected successfully\n"; mysql_select_db("articles") or die("Could not select database");
0
1804
by: Andreas Reuleaux | last post by:
What works for me with mysql 3.23.49 of Debian GNU/Linux (Woody), does not any more with mysql 3.23.56 of fink (current-stable, for fink cf. fink.sf.net) - I am not sure, if this problem is caused by the mysql version (some security changes between .49 and .56) or by the fink configuration - I might ask at the fink-users list later. I am trying to create a database and a mysql user with privileges to use it - a rather simple thing to...
0
3388
by: Ryan Schefke | last post by:
------=_NextPart_000_0077_01C34C8B.2B90C960 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit ..I just sent this out to the win32 distribution list but no one has replied.can someone on this list please help? The issue should be trivial for experienced MySQL users, I'm just a novice, thanks!
8
18468
by: John | last post by:
Hello. I am currently working through a book on Dreamweaver and using PHP. I am having a little trouble with setting up the database though. I have php 4.2.3 and MySQL 4.0.20a. I am running locally with Apache 1.3.27 on Windows XP Pro. I seem to have finally got MySQL running after a lot of difficulty. In the book it says to type source C:\mysql\newland_tours.sql at the mysql> prompt, to generate the newland_tours database in my...
0
2944
by: Steve | last post by:
Hi, Yesterday I signed up for another dedicated linux server with the hosting company I use and I am having problems getting MySQL 4.1.3 working on it. I've tried just about everything I can think of to login via the MySQL client but get a variation of the following error every time: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
2
2973
by: adnan alsamari | last post by:
Hi, I can only access mysql through the root by typing mysql -u root -p. But when I use any other user to connect to mysql I get the access denied error message. Mysql is installed on windows xp. I looked up information online to solve this problem and saw that there are some scripts that i may be able to run in order to fix the problem. But I am not sure how to handle those scripts since they are only made for unix systems. I tried to...
4
2727
by: RichB | last post by:
Hello, The .NET application I have just installed at a client web site is throwing a strange error. At first the applications works without any problems, but after 10 mins or so Access denied error messages are thrown. The application, web based, late binds to a series of assemblies, none of which are in the GAC. I have configured the application to impersonate the IIS user and have set the user to have access to all relevant...
2
74691
by: SKB | last post by:
Hi, I am absolutely new to this area. I am getting the following difficulty : Access denied for user 'ODBC'@'localhost' (using password: NO) when I try the mysql command from within the C:\Program Files\MySQL\MySQL Server 5.0\bin on the command window. Please note that the MySQL is runnging as I have tried the command NET START MySQL and it gives the following output: The requested service has already been started. More help is...
8
6048
by: Jeremy Ames | last post by:
I am trying to move an application from my system to a new test system. I really should have tried an easier program first, but I didn't really have a chance. My application was originally written in ASP.NET 1.1, but was migrated to 2.0 during development. The reason this is an issue is because the application is using the Microsoft.Web.UI.WebControls.dll for the tree view and tab strip controls that didn't exist prior to 2.0. Well, that is...
0
8639
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9203
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8957
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8912
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6556
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5897
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4650
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2379
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2021
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.