LinuxQuestions.org
Help answer threads with 0 replies.
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 12-31-2014, 10:17 PM   #1
Johnn0
LQ Newbie
 
Registered: Dec 2014
Posts: 5

Rep: Reputation: Disabled
Resetting mySQL installation on slackware


Hi there,

I'm running Slackware 14.1 in a VMWare virtual machine and when I try to run mysql_install_db --user=mysql it returns an error. It also prompts me for a password when I attempt mysql_secure_installation and I'm not sure what the password is; I think I may have set it earlier by accident. Here's the error it gives me:

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

How do I reset my password for mySQL on slackware, or uninstall and reinstall mySQL?
 
Old 12-31-2014, 11:18 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,307
Blog Entries: 2

Rep: Reputation: Disabled
On the instance we're discussing, do you have a user named "mysql"?
Code:
#awk -F: '{print $1}' /etc/passwd | grep -i mysql
If that returns 'mysql' then set that users password and use it when you try again
Code:
#passwd mysql <password>

Last edited by dijetlo; 01-01-2015 at 08:16 AM. Reason: clarity
 
  


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
LXer: Setting, Changing And Resetting MySQL Root Passwords LXer Syndicated Linux News 0 01-19-2009 09:30 AM
Slackware 12.1: Problem with MySQL Installation Cire_08 Slackware 5 07-17-2008 11:10 PM
resetting my installation linux_ub Linux - Newbie 2 07-22-2004 11:58 AM
Resetting MySQL root password b200306 Linux - Software 3 02-08-2004 04:21 PM
Apache PHP MySQL Setup after Slackware 9.0 Installation initself Slackware 37 12-20-2003 07:48 AM


All times are GMT -5. The time now is 08:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration