LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 04-23-2005, 12:12 AM   #1
number11
LQ Newbie
 
Registered: Jan 2005
Posts: 17

Rep: Reputation: 0
Trying to start Mysql server


I am trying to setup MYSQL and after I put in this command /usr/bin/mysqladmin -u root password 'new-password' I put my own password in there. I get this error message.

/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: NO)'

What am I doing wrong. In case you need this I am using Slack 10.1

Last edited by number11; 04-23-2005 at 12:15 AM.
 
Old 04-23-2005, 01:39 AM   #2
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
It doesn't appear that mysql is running. Did you install the initial database? If not, the very first thing you should do is run:
Code:
su - mysql
mysql_install_db
Then you should change the permissions on /etc/rc.d/rc.mysqld so that it's started automatically upon boot, assuming that's what you want. You can do that with:
Code:
chmod 755 /etc/rc.d/rc.mysqld
Then start the server like this:
Code:
/etc/rc.d/rc.mysqld start
Then try to reset your password again.
 
Old 06-05-2005, 11:22 AM   #3
Havocnl
LQ Newbie
 
Registered: Jun 2005
Location: Tilburg, Netherlands
Distribution: Slackware 10.1
Posts: 2

Rep: Reputation: 0
I'm having the same problems, did all the stuff already you posted in your post.....
MySQL shoudl be running normally as far as i can see. I think i configured it right. But when i try to give a password it does this....
Code:
root@maarten-server:/# /usr/bin/mysqladmin -u root password '******' 
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user: 'root@localhost' (Using password: NO)'
P.S. a real linux and slackware noobie, but learning fast
Also using slackware 10.1 btw

Last edited by Havocnl; 06-05-2005 at 02:46 PM.
 
Old 06-06-2005, 02:59 PM   #4
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Try this

Code:
/usr/bin/mysqladmin -u root -p
 
  


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
how do I start mysql server? barrythai Suse/Novell 4 04-05-2006 06:46 PM
MySQL server doesn't want to start AJ_Cantos Linux - Software 7 11-29-2004 05:24 PM
How to start mysql server krussell Linux - General 2 01-19-2004 11:24 AM
MySQL server start up problems spectrumver1 Linux - Software 2 12-09-2003 08:56 PM
Proplems start MySQL server... Simon W Linux - General 1 03-09-2002 05:32 PM


All times are GMT -5. The time now is 12:38 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration