Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Jul 30, 2012 2:55 pm 
Offline
Senior Newbie

Joined: Sat May 12, 2012 2:53 pm
Posts: 5
Hi folks,

I forgot my password for mariadb which I'm running as a drop-in replacement for mysql. Figured I'd just follow the standard reset directions to get myself out of the mess. I'm running Ubuntu 11.10.

I tried running this set of commands:
Code:
/etc/init.d/mysql stop
mysqld_safe --skip-grant-tables &
mysql -u root
mysql> use mysql;
mysql> update user set password=PASSWORD("newrootpassword") where User='root';
mysql> flush privileges;
mysql> quit
/etc/init.d/mysql stop
/etc/init.d/mysql start


Problem is, when I get to the step to run mysqld_safe, I get this message from terminal:
120730 18:47:37 mysqld_safe A mysqld process already exists


I ran a check, and after killing the mysql with /etc/init.d/mysql I get this:
Code:
user@server:/var/run$ sudo /etc/init.d/mysql stop
 * Stopping MariaDB database server mysqld                               [ OK ]
user@server:/var/run$ sudo service mysql status
mysql start/running, process 31639


I'm not sure what is going on here. It seems I've got two mysql installations or I'm doing something wrong. I thought I'd fully uninstalled mysql when I installed mariadb. Just confused here, and could really use help to get in and change that blasted pw.


Top
   
PostPosted: Wed Aug 01, 2012 2:25 am 
Offline
Senior Newbie
User avatar

Joined: Wed Aug 01, 2012 2:18 am
Posts: 13
You might have had a second installation. I'd just try killing the process and starting up mysqld_safe again. Check your package manager for any other installations of mysqld or do a "locate mysqld" to see if you've got a secondary installation running. Even with multi-threading, you shouldn't have two mysqld processes running if you're stopping it through init.d.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group