How to uninstall MySQL
This document (7012894) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Server 11
Situation
When trying to access the MySQL database, the following error is displayed:
mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'root'@'localhost' (using password: NO)'
Resolution
Back up any Vibe Data that is needed, see documentation for Backing Up and Restoring Vibe Data.
Please follow these steps to uninstall MySQL:
- YaST | Software Management | Search for mysql
- Right-click mysql Server part of MySQL Community Server and select Delete
- Select Accept
- Either remove or rename /var/lib/mysql:
- rm -R /var/lib/mysql
- mv /var/lib/mysql /var/lib/mysql.old
Please follow these steps to reinstall MySQL fresh (creation of new password):
- YaST | Software Management | Search for mysql
- Right-click mysql Server part of MySQL Community Server and select Install
- Select Accept and Continue.
- Start the MySQL daemon:
rcmysql start - 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 tharris7 password 'new-password'
Cause
Disclaimer
This Support Knowledgebase provides a valuable tool for NetIQ/Novell/SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7012894
- Creation Date:17-JUL-13
- Modified Date:17-JUL-13
- NovellVibe
- SUSESUSE Linux Enterprise Server
Did this document solve your problem? Provide Feedback
