Doc #51508 [NEW]: MySQL error

From: Date: Thu, 08 Apr 2010 10:42:13 +0000
Subject: Doc #51508 [NEW]: MySQL error
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-4168@lists.php.net to get a copy of this message
From: Operating system: OSX PHP version: Irrelevant Package: Documentation problem Bug Type: Documentation Problem Bug description:MySQL error Description: ------------ The provided examples generate MySQL errors: 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=InnoDB' at line 1 Test script: --------------- <?php error_reporting(E_ALL | E_STRICT); ini_set('display_errors', '1'); $link = mysqli_connect("localhost", "world", "deadl1ne", "world"); if (!$link) { printf("Can't connect to localhost. Error: %s\n", mysqli_connect_error()); exit(); } /* set autocommit to off */ mysqli_autocommit($link, FALSE); mysqli_query($link, "CREATE TABLE Language LIKE CountryLanguage Type=InnoDB"); print mysqli_error($link); /* Insert some values */ mysqli_query($link, "INSERT INTO Language VALUES ('DEU', 'Bavarian', 'F', 11.2)"); mysqli_query($link, "INSERT INTO Language VALUES ('DEU', 'Swabian', 'F', 9.4)"); /* commit transaction */ mysqli_commit($link); /* close connection */ mysqli_close($link); ?> -- Edit bug report at http://bugs.php.net/bug.php?id=51508&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51508&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51508&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51508&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51508&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51508&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51508&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51508&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51508&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51508&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51508&r=support Expected behavior: http://bugs.php.net/fix.php?id=51508&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51508&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51508&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51508&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51508&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=51508&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51508&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51508&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51508&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51508&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51508&r=mysqlcfg

« previous php.doc.bugs (#4168) next »