setup-mysql fails with domain names containing hyphens

Bug #316392 reported by Sir George
2
Affects Status Importance Assigned to Milestone
wordpress (Debian)
Fix Released
Unknown
wordpress (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: wordpress

root@hgf-desktop:~# bash /usr/share/doc/wordpress/examples/setup-mysql hgf-desktop
PING hgf-desktop (10.0.0.4) 56(84) bytes of data.
64 bytes from hgf-desktop (10.0.0.4): icmp_seq=1 ttl=64 time=0.046 ms

--- hgf-desktop ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.046/0.046/0.046/0.000 ms
Constructed database name and user: hgf-desktop from hgf-desktop
/etc/wordpress/config-hgf-desktop.php written
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '-desktop' at line 1
Trying to create upload directory: /var/www/wp-uploads/hgf-desktop
Goto http://hgf-desktop to setup Wordpress

~
Patch of the sed command attached
Ubuntu Release: 8.10
Affected version: 2.5.1-8ubuntu1

Revision history for this message
Sir George (hgfriedmann) wrote :

Sorry folks, the preceding patch was accidently reversed...

Sir George (hgfriedmann)
description: updated
Changed in wordpress:
status: New → Confirmed
Revision history for this message
Savvas Radevic (medigeek) wrote :
Revision history for this message
Savvas Radevic (medigeek) wrote :

Debian:
Fixed in version wordpress/2.7.1-2

Changes:
 wordpress (2.7.1-2) unstable; urgency=low
 .
   * setup-mysql corrected to accept domain names with hyphens (Closes: #514447)
   * wp-config.php now dies if no config file is found (Closes: #500296)
   * now the static browser uploader is supported (Closes: #501507)
    Users che chose to use the browser (instead of flash) to upload media files.

Revision history for this message
Thierry Carrez (ttx) wrote :

Merged in Jaunty (2.7.1-2ubuntu1)

Changed in wordpress:
status: Confirmed → Fix Released
Changed in wordpress:
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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