Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > General Help
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

General Help
All your general support questions for Ubuntu, Kubuntu, Edubuntu and Xubuntu.

 
Thread Tools Display Modes
Old January 4th, 2006   #1
eggroid
First Cup of Ubuntu
 
Join Date: Sep 2005
Beans: 6
MySQL - debian-sys-maint account

I zapped the debian-sys-maint account right out of MySql doing a restore from a different distro - what permissions do I need to give this account?

Can anybody with MySql try this:

Code:
SHOW GRANTS for 'debian-sys-maint'@'localhost';
Thank you!
eggroid is offline   Reply With Quote
Old January 4th, 2006   #2
eggroid
First Cup of Ubuntu
 
Join Date: Sep 2005
Beans: 6
Re: MySQL - debian-sys-maint account

bump!

Can somebody with mysql server installed help me out here?
eggroid is offline   Reply With Quote
Old January 5th, 2006   #3
eggroid
First Cup of Ubuntu
 
Join Date: Sep 2005
Beans: 6
Re: MySQL - debian-sys-maint account

SOLVED

I did it myself by booting up a Live CD.

Code:
mysql> show grants for 'debian-sys-maint'@'localhost';
+---------------------------------------------------------------------------------------------------------------------------+
| Grants for debian-sys-maint@localhost                                             |
+---------------------------------------------------------------------------------------------------------------------------+
| GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY PASSWORD '1c26de472d9b41cf' WITH GRANT OPTION |
+---------------------------------------------------------------------------------------------------------------------------+
The strikes me as a little to much access though... I set it to:

Code:
GRANT RELOAD, SHUTDOWN, PROCESS, SHOW DATABASES, SUPER, LOCK TABLES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY PASSWORD '1c26de472d9b41cf'
At first glance this seems like enough to rotate the logs out. But the default, for anybody else having the same problem, is all privileges on *.*, as above.
eggroid is offline   Reply With Quote
Old October 28th, 2006   #4
mediajunkie
5 Cups of Ubuntu
 
Join Date: Oct 2006
Location: Canada
Beans: 27
Re: MySQL - debian-sys-maint account

Hi,

I have the same thing (loaded a dump from other server) and now I get :/etc/init.d$ /usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)'

I've tried:

GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY PASSWORD '1c26de472d9b41cf' WITH GRANT OPTION

but with no result. I still get the same error on restarting.
Is there any way to recover out of this?

thanks
mediajunkie is offline   Reply With Quote
Old October 29th, 2006   #5
Kochin
First Cup of Ubuntu
 
Join Date: Apr 2006
Beans: 5
Re: MySQL - debian-sys-maint account

Find your debian-sys-maint password in /etc/mysql/debian.cnf.

Then use
Code:
GRANT ALL PRIVILEGES ON *.* TO 'debian-sys-maint'@'localhost' IDENTIFIED BY '<password>' WITH GRANT OPTION;
Replace <password> with your debian-sys-maint password.
Kochin is offline   Reply With Quote
Old November 4th, 2006   #6
Abhi Kalyan
Way Too Much Ubuntu
 
Abhi Kalyan's Avatar
 
Join Date: Oct 2006
Location: India, Chennai, Mylapore
Beans: 265
Ubuntu 8.04 Hardy Heron
Send a message via Yahoo to Abhi Kalyan Send a message via Skype™ to Abhi Kalyan
Re: MySQL - debian-sys-maint account

Am a new person here and am learling posting here as this thread interests my current Project.
Thank you
__________________
Love Abhinya
(\_./)
(O.-)
(> <)
Abhi Kalyan is offline   Reply With Quote
Old November 25th, 2006   #7
satimis
Dark Roasted Ubuntu
 
Join Date: Apr 2006
Beans: 1,012
Re: MySQL - debian-sys-maint account

Hi folks,

Ubuntu-6.06.1-LAMP-server-amd64
MySQL - Ver 14.12 Distrib 5.0.22, for pc-linux-gnu (x86_64) using readline 5.1


I have the same problem on restarting MySQL

$ sudo /etc/init.d/mysql restart
Password:
Code:
Stopping MySQL database server: mysqld...failed.
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)'
Killing MySQL database server by signal: mysqld.
Starting MySQL database server: mysqld.
/usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)'
satimis@ubuntu:~$ /usr/bin/mysqladmin: connect to server at 'localhost' failed
error: 'Access denied for user 'debian-sys-maint'@'localhost' (using password: YES)'

(the cursor hanging here.  I suppose waiting for input)
mysql> show grants for 'debian-sys-maint'@'localhost';
Code:
ERROR 1141 (42000): There is no such grant defined for user 'debian-sys-maint' on host 'localhost'
/etc/mysql/debian.cnf is an empty file.

Please advise what shall I do? How to fix it? TIA


B.R.
satimis
satimis is offline   Reply With Quote
Old January 3rd, 2007   #8
hogman23
5 Cups of Ubuntu
 
hogman23's Avatar
 
Join Date: Jul 2006
Location: Jackson, MS
Beans: 37
Gutsy Gibbon Testing
Re: MySQL - debian-sys-maint account

Quote:
Originally Posted by satimis View Post
mysql> show grants for 'debian-sys-maint'@'localhost';
Code:
ERROR 1141 (42000): There is no such grant defined for user 'debian-sys-maint' on host 'localhost'
/etc/mysql/debian.cnf is an empty file.

Please advise what shall I do? How to fix it? TIA


B.R.
satimis
I would add something like this in the file:


# Automatically generated for Debian scripts. DO NOT TOUCH!
[client]
host = localhost
user = debian-sys-maint
password = tdsclIL73xUw2ip2
socket = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
user = debian-sys-maint
password = tdsclIL73xUw2ip2
socket = /var/run/mysqld/mysqld.sock
basedir = /usr
hogman23 is offline   Reply With Quote
Old January 5th, 2007   #9
satimis
Dark Roasted Ubuntu
 
Join Date: Apr 2006
Beans: 1,012
Re: MySQL - debian-sys-maint account

Hi hogman23,

Tks for your advice.

I haven't touched mysql sometimes. Strangely I found;

$ cat /etc/mysql/debian.cnf
Code:
# Automatically generated for Debian scripts. DO NOT TOUCH!
[client]
host     = localhost
user     = debian-sys-maint
password = qsN2OSgfrhI6AFzG
socket   = /var/run/mysqld/mysqld.sock
[mysql_upgrade]
host     = localhost
user     = debian-sys-maint
password = qsN2OSgfrhI6AFzG
socket   = /var/run/mysqld/mysqld.sock
It is now not an empty file.

What are those "password = qsN2OSgfrhI6AFzG"? Tks.

B.R.
satimis
satimis is offline   Reply With Quote
Old February 13th, 2007   #10
matsti
First Cup of Ubuntu
 
Join Date: Feb 2007
Beans: 2
Re: MySQL - debian-sys-maint account

I had the same problem after an upgrade (I use Debian and apt). A new password was generated in /etc/mysql/debian.cnf but my existing mysql DB kept the password configuration as before the upgrade. Overwriting the password (qsN2OSgfrhI6AFzG in previous post) with my mysql password from before the upgrade did the trick. Hope this helps. M
matsti is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:17 AM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry