LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-29-2006, 06:24 AM   #1
dave`2005
Member
 
Registered: Aug 2005
Distribution: Ubuntu 7.10, Slackware 12
Posts: 270

Rep: Reputation: 30
Setting a password for mysql.


Hi all, just started mysql up for the 1st time, i saw this:
Code:
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h Barad-Dur password 'new-password'
The 1st command worked fine but when doing the 2nd one i got:
Code:
/usr/bin/mysqladmin: connect to server at 'Barad-Dur' failed
error: 'Lost connection to MySQL server during query'
Any ideas what im doing wrong? Or is the 1st command sufficient?

Any help appreciated.
 
Old 05-29-2006, 06:42 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,801

Rep: Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884Reputation: 1884
the first command will try to connect to localhost, your local MySQL Server, and the second one will try to connect to host Barad-Dur, which (i think) not your host, so the first one is sufficient.
 
Old 05-29-2006, 07:45 AM   #3
Bobocop
LQ Newbie
 
Registered: May 2006
Posts: 6

Rep: Reputation: 0
Sorry I posted By Mistake and I can't delete this post now

Last edited by Bobocop; 05-29-2006 at 07:51 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MYSQL will not take my password number11 Slackware 4 04-23-2005 07:48 AM
setting user password to mysql!! baby_linu Programming 3 03-09-2004 11:59 AM
Setting root password saxophobe Linux - Newbie 11 01-17-2004 01:33 PM
sql setting password nocturnal Linux - Software 1 07-03-2003 10:17 PM
mysql + password ethanchic Linux - Software 5 02-03-2003 07:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:24 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration