PDA

View Full Version : [Solved] Syntax error SQL on Postfixadmin setup.php


Blodia
December 15th, 2009, 15:46
Hello everybody,

first, Excuse my English, but I do not speak English well.

Here is my problem:

When i launch http://my_ip_address/postfixadmin/setup.php

I have this message at the bottom of list:

DEBUG INFORMATION:
Invalid query: 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 'TYPE=MyISAM DEFAULT /*!40100 CHARACTER SET latin1 COLLATE latin1_swedish_ci */ C' at line 9

SirDice
December 15th, 2009, 16:04
What version of mysql do you have?

Did you install the port or a package?

Blodia
December 15th, 2009, 16:34
Mysql6.0

Blodia
December 15th, 2009, 16:34
with port intall

SirDice
December 15th, 2009, 16:59
Hmm..


CREATE table (.....) TYPE=MyISAM


Looks like mysql 5.0 type definition. 5.1 (and higher) only accepts:

CREATE table (.....) ENGINE=MyISAM


So it looks like you need to install mysql 5.0 instead of 6.0.

Blodia
December 15th, 2009, 17:30
How i can downgrade mysql, i don't want reinstall my server and mysql

SirDice
December 15th, 2009, 17:31
pkg_delete -x mysql

And install the proper version of mysql.

Blodia
December 15th, 2009, 17:34
When i make this command, i have this message:

pkg_delete: package 'php5-mysql-5.2.11' is required by these other packages
and may not be deinstalled:
php5-extensions-1.3
postfixadmin-2.2.1.1
pkg_delete: package 'php5-mysqli-5.2.11' is required by these other packages
and may not be deinstalled:
postfixadmin-2.2.1.1

SirDice
December 15th, 2009, 18:08
Ok.. pkg_delete -rx mysql, then you also need to reinstall all those ports/packages.

Blodia
December 16th, 2009, 08:37
IWhen i make this command, ihave this message:

pkg_delete: '/usr/local/www/postfixadmin/config.inc.php' fails original MD5 checksum - not deleted.
pkg_delete: unable to completely remove directory '/usr/local/www/postfixadmin'
pkg_delete: couldn't entirely delete package (perhaps the packing list is
incorrectly specified?)

Sorry, but i'm a newbie.

SirDice
December 16th, 2009, 11:05
Ignore them, it tells you it couldn't remove config.inc.php because it's been edited.

Blodia
December 16th, 2009, 14:56
Ok, thank you for all.
Have a nice day.

Blodia
December 16th, 2009, 15:01
This post is resolved.:e

johnblue
December 25th, 2009, 02:03
and may not be deinstalled:
postfixadmin-2.2.1.1postfixadmin-2.2.1.1 and older contained this SQL bug. Instead of uninstalling everything, you should have upgraded to postfixadmin 2.3 (http://www.freebsd.org/cgi/ports.cgi?query=postfixadmin&stype=all), which is in the ports.