Ubuntu Server Guide 12.04 - MySQL Advanced configuration mistakes

Bug #1152672 reported by pierce.jason
22
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu Server Guide
Fix Released
Undecided
Doug Smythies

Bug Description

https://help.ubuntu.com/12.04/serverguide/mysql.html#mysql-advanced

1) Advanced Configuration lists /etc/my.cnf as the location, but it should be /etc/mysql/my.cnf

2) Command "mysqldump --all-databases --all-routines -u root -p > ~/fulldump.sql". --all-routines is not a valid switch in this version of mysqldump. --routines does exist though and is probably the intended switch.

3) "sudo service start mysql" should read "sudo service mysql start".

summary: - Ubuntu Server Guide 12.04 - MySQL config path incorrect
+ Ubuntu Server Guide 12.04 - MySQL Advanced configuration mistakes
description: updated
description: updated
affects: ubuntu-docs (Ubuntu) → serverguide
Revision history for this message
Doug Smythies (dsmythies) wrote :

For raring, issue 1 has already been solved.
For issue 2, it seems this:

mysqldump --all-databases --all-routines -u root -p > ~/fulldump.sql

Should change to:

mysqldump --all-databases --routines -u root -p > ~/fulldump.sql

I can confirm that "--all-routines" does not work, and that "--routines" does. However, am not a subject matter expert here, and I can not confirm if the contents of fulldump.sql are complete.

Revision history for this message
Doug Smythies (dsmythies) wrote :

Sorry, my mistake. Issue 1 needs fixing in the raring branch also, and as described.

Revision history for this message
Doug Smythies (dsmythies) wrote :

I have a branch ready to merge. See the attached bzr diff output.
However, I would still like a subject matter expert to confirm the mysqldump command.

Revision history for this message
Bryan Fullerton (fehwalker) wrote :

Confirmed that the diff is correct, --routines is the appropriate flag.

Will you also backport to precise and quantal? If not feel free to assign that to me.

Revision history for this message
Doug Smythies (dsmythies) wrote :

Bryan, thanks for your confirmation. I will go ahead and put this into the raring main branch.
With time running out for the raring string freeze (April 4th), and so much to do, I have been only doing raring changes, leaving the others.

Revision history for this message
aaron (kasper-341) wrote :

hi all

just to re-iterate what has been said before issue (3) "sudo service start mysql" should read "sudo service mysql start".

aaron@aaron-VirtualBox:/xx/xx/xx$ sudo service mysql start
mysqld: unrecognized service

aaron@aaron-VirtualBox:/xx/xx/xx$ sudo service start mysql
start: unrecognized service

in both cases i got the same error - correction i found is

1) aaron@aaron-VirtualBox:/xx/xx/xx$ start mysql

start: Rejected send message, 1 matched rules; type="method_call", sender=":1.88" (uid=1000 pid=10537 comm="start mysql ") interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")

2) check the status - MySQL server

aaron@aaron-VirtualBox:~$ sudo netstat -tap | grep mysql
tcp 0 0 localhost:mysql *:* LISTEN 10369/mysqld

3) to stop the service.

aaron@aaron-VirtualBox:~$ sudo stop mysql

thanks.

Revision history for this message
Doug Smythies (dsmythies) wrote :

Works fine for me:

doug@s15:~$ sudo service mysql stop
mysql stop/waiting
doug@s15:~$ sudo service mysql start
mysql start/running, process 9243
doug@s15:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.3 LTS
Release: 12.04
Codename: precise
doug@s15:~$ uname -a
Linux s15 3.2.0-56-generic #86-Ubuntu SMP Wed Oct 23 09:20:45 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Revision history for this message
aaron (kasper-341) wrote :

ok .. i got it now, must be a typo error on my end, thanks for your help.

aaron@aaron-VirtualBox:~$ sudo service mysql start
mysql start/running, process 11974

aaron@aaron-VirtualBox:~$ sudo netstat -tap | grep mysql
tcp 0 0 localhost:mysql *:* LISTEN 11974/mysqld

no longer affects: serverguide/quantal
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.