MySQL Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsDatabasesMySQL Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 20th, 2004, 04:25 AM
smylley smylley is offline
Registered User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 1 smylley User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Unhappy Removing root password on mysql useing RedHat

Hello
I have a problem with mysql server. I am runing mysql on RedHat9 Linux server. By mistake I made a stuping thing. I tried to change root password useing phpmyadmin. When I did this I can'd connect to mysql. The message apear:

mysql -u mysql -p

Enter password:
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

Bine ai venit la phpMyAdmin 2.5.6-dev


phpMyAdmin a incercat sa se conecteze la serverul de MySQL dar acesta a respins conexiunea. Ar trebui verificat daca datele din config.inc.php sunt corecte.


Warning: Cannot add header information - headers already sent by (output started at /var/www/html/poseidon/phpMyadmin/libraries/auth/config.auth.lib.php:96) in /var/www/html/poseidon/phpMyadmin/libraries/ob.lib.php on line 61

Warning: Cannot add header information - headers already sent by (output started at /var/www/html/poseidon/phpMyadmin/libraries/auth/config.auth.lib.php:96) in /var/www/html/poseidon/phpMyadmin/libraries/header_http.inc.php on line 14

Warning: Cannot add header information - headers already sent by (output started at /var/www/html/poseidon/phpMyadmin/libraries/auth/config.auth.lib.php:96) in /var/www/html/poseidon/phpMyadmin/libraries/header_http.inc.php on line 15

Warning: Cannot add header information - headers already sent by (output started at /var/www/html/poseidon/phpMyadmin/libraries/auth/config.auth.lib.php:96) in /var/www/html/poseidon/phpMyadmin/libraries/header_http.inc.php on line 16

Warning: Cannot add header information - headers already sent by (output started at /var/www/html/poseidon/phpMyadmin/libraries/auth/config.auth.lib.php:96) in /var/www/html/poseidon/phpMyadmin/libraries/header_http.inc.php on line 17

Warning: Cannot add header information - headers already sent by (output started at /var/www/html/poseidon/phpMyadmin/libraries/auth/config.auth.lib.php:96) in /var/www/html/poseidon/phpMyadmin/libraries/header_http.inc.php on line 20

Server localhost

Fatal error: Call to undefined function: pma_sqp_iserror() in /var/www/html/poseidon/phpMyadmin/libraries/common.lib.php on line 488

What can I do to make mysql working again?
Many thanks,
Bogdan

P.S. I saw the simmilar articles on the forum but nothing worked so far!

Reply With Quote
  #2  
Old February 21st, 2004, 08:16 PM
MadCowDzz's Avatar
MadCowDzz MadCowDzz is offline
I'm Internet Famous
Dev Articles Frequenter (2500 - 2999 posts)
 
Join Date: Jan 2003
Location: Toronto, Canada
Posts: 2,890 MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level)MadCowDzz User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 1 Week 16 h 4 m 48 sec
Reputation Power: 8
Try this:

Code:
login to mysql, then

USE mysql
UPDATE user SET password=PASSWORD('yournewpass') WHERE user='root' ;
FLUSH privileges


However, in the past I've found when you lose your root password its best to simply re-install mysql...
Back up your data directory and re-install... =)

Reply With Quote
  #3  
Old February 23rd, 2004, 10:09 AM
dhouston's Avatar
dhouston dhouston is offline
Contributing User
Dev Articles Beginner (1000 - 1499 posts)
 
Join Date: May 2003
Location: Tennessee
Posts: 1,355 dhouston User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to dhouston
Or go into the phpmyadmin config file and change the root password there as well. I imagine phpmyadmin allowed you to change the password, but if phpmyadmin is running as root and you changed the password on the server but not in the config, well, you see the dilemma.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsDatabasesMySQL Development > Removing root password on mysql useing RedHat


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway