The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > Linux
Google UNIX.COM


Linux RedHat, Ubuntu, SUSE, Fedora, Debian, Mandriva, Slackware, Gentoo linux, PCLinuxOS. All Linux questions here!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
SUSE9.1 Peculiar Gigabit Lan performance. Mark Ward Linux 0 01-08-2005 08:13 AM
How Do I Reset An Ssh Port PCTECH UNIX for Dummies Questions & Answers 3 01-04-2005 02:57 PM
Suse9.0 + Apche2 hiepng Linux 0 07-23-2004 10:56 AM
I want to reset my workstation! Sotelo_27 UNIX for Dummies Questions & Answers 4 09-16-2002 11:33 AM
Tape Reset????? rrivas UNIX for Dummies Questions & Answers 1 09-13-2002 03:39 AM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1  
Old 10-01-2005
Registered User
 

Join Date: Sep 2004
Location: Kent, UK
Posts: 28
MySQL4 config messup on Suse9.1 How to reset?

I'm trying to run phpBB2 software on Apache2, all was fine with setups except I had no password protecting my database.

After researching how to do it, I attempted to set password "freddy" to root (for obvious reasons "freddy" isn't the actual pw I used).

I now can't login to MYSQL4 using root at all, I have to use "mysql -u freddy". Then I'm logged in as "freddy@localhost" but still with no password.

Logging is as root I get:-

# mysql -u root

ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

Logging in as "Freddy" I get:-

# mysql -u Freddy

Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7 to server version: 4.1.14-standard

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>


I've tried reinstalling MYSQL4, but the config data remains.

Could anyone help me remove the user "freddy" and add a password to protect the root login?

I'd be happy to delete all & start again as the db currently contains no data at all.

Many thanks,

Mark.

Last edited by Mark Ward; 10-01-2005 at 05:09 AM.
Reply With Quote
Forum Sponsor
  #2  
Old 10-01-2005
Registered User
 

Join Date: Sep 2004
Location: Kent, UK
Posts: 28
Solved my own problem so thought I'd post solution.

#mysql -uroot =p" mysql

Then enter a password and all is fine again.

I found this solution in one of the replies to This Thread

Mark.
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 11:37 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008. All Rights Reserved.Ad Management by RedTyger Visit The Complex Event Processing Blog

Content Relevant URLs by vBSEO 3.2.0