Jump to content
-- phpMyAdmin SQL Dump

-- version 4.2.11


--

-- Host: 127.0.0.1

-- Generation Time: Apr 09, 2015 at 11:30 PM

-- Server version: 5.6.21

-- PHP Version: 5.6.3

 

SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";

SET time_zone = "+00:00";

 

 

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@character1_SET_CLIENT */;

/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@character1_SET_RESULTS */;

/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;

/*!40101 SET NAMES utf8 */;

 

--

-- Database: `quant`

--

 

-- --------------------------------------------------------

 

--

-- Table structure for table `stopsigns`

--

 

CREATE TABLE IF NOT EXISTS `stopsigns` (

 `id` int(11) NOT NULL,

  `x` decimal(10,6) DEFAULT '0.000000',

  `y` decimal(10,6) DEFAULT '0.000000',

  `z` decimal(10,6) DEFAULT '0.000000',

  `rotation` decimal(10,6) DEFAULT '0.000000',

  `dimension` int(5) DEFAULT '0',

  `interior` int(5) DEFAULT '0',

) ENGINE=InnoDB DEFAULT CHARSET=latin1;

 

--

-- Indexes for dumped tables

--

 

--

-- Indexes for table `stopsigns`

--

ALTER TABLE `stopsigns`

 ADD PRIMARY KEY (`id`);

 

--

-- AUTO_INCREMENT for dumped tables

--

 

--

-- AUTO_INCREMENT for table `stopsigns`

--

ALTER TABLE `stopsigns`

MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;

/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;

/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;

/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Hello i need some help with This script, its for a game server to save some positions of objects but i get the error of 1064: you have a error with your SQL syntax, i am thinking its at the line ) ENGINE=InnoDB DEFAULT CHARSET=latin1; just under the table structure, if anyone can help i would REALLY apreciate it

Link to comment
https://linustechtips.com/topic/344838-help-from-someone-who-knows-sql/
Share on other sites

Link to post
Share on other sites

It may be something with the line

DEFAULT CHARSET=latin1

Has that worked for you before? If not, I would google around for setting a default character set, which might be handled by another file in the database

AMD FX8350  2x ASUS Radeon R9 270X 4GB  ASUS Sabertooth 990FX  -  Crucial Ballistix Sport DDR3 16GB

Link to post
Share on other sites

It may be something with the line

DEFAULT CHARSET=latin1

Has that worked for you before? If not, I would google around for setting a default character set, which might be handled by another file in the database

It actualy has worked for me before and worked for the rest of my tables, just not for that table

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×