Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 04-04-2007, 01:39 AM   #1
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
MySQL syntax error... please help

I'm trying to load these tables vrun sql queries & I get this error message;

"MySQL said:

#1064 - 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 '\g

create table performers (performer_name varchar(255) not "


I have no idea how to fix this. Can anyone help?

Here is the queries


Code:
create table producers (producer_server varchar(255) not null, type varchar(255) not null, version varchar(255), login varchar(255) not null, password varchar(255) not null, dbase varchar(255) not null, name varchar(255), address varchar(255))\g

create table performers (performer_name varchar(255) not null, producer_server varchar(255) not null, date_of_birth date not null, last_name varchar(255) not null, first_name varchar(255) not null, id_document_url varchar(255) not null, pic_url varchar(255))\g

create table depictions (depiction_name varchar(255) not null, producer_server varchar(255) not null, depiction_date date not null, depiction_type varchar(255) not null, copy_url varchar(255) not null)\g

create table depiction_urls (depiction_name varchar(255) not null, producer_server varchar(255) not null, url varchar(255) not null)\g

create table aliases (performer_name varchar(255) not null, producer_server varchar(255) not null, alias varchar(255) not null, alias_type varchar(255) not null)\g

create table audit_trail (edit_date timestamp not null, login varchar(32) not null, command varchar(255) not null)\g

create table logins (login varchar(32) not null, password varchar(32), login_type int not null)\g

create table inspections (inspection_date date not null, credentials varchar(255), nature varchar(255), purpose varchar(255), scope varchar(255), violations varchar(255), copies varchar(255))\g

create table depiction_performers (depiction_name varchar(255) not null, performer_name varchar(255) not null, producer_server varchar(255) not null)\g

insert into logins values('xxxxxx', 'xxxxxx', 3)\g

much appreciated

Last edited by spacedog; 04-04-2007 at 01:40 AM..
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-04-2007, 02:41 AM   #2
hjnet
Confirmed User
 
Join Date: May 2002
Location: European Union
Posts: 3,815
Don't know where you're trying to run these queries, but a proper SQL query should look like:

create table 'producers' ('producer_server' varchar(255) not null);

so it depends how you're trying to run these queries, but you might wanna check your syntax
hjnet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-04-2007, 02:50 AM   #3
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
Quote:
Originally Posted by hjnet View Post
Don't know where you're trying to run these queries, but a proper SQL query should look like:

create table 'producers' ('producer_server' varchar(255) not null);

so it depends how you're trying to run these queries, but you might wanna check your syntax
Well, the script instructions say to generate tables via;

shell > mysqladmin -h <host> -u <user> -p create <dbname>
Enter password: *******
shell > mysql -h <host> -u <user> -p <dbname> < load_tables
Enter password: *******


but that's all greek to me, so took the file named load_tables & tried running it as queries.
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-04-2007, 03:08 AM   #4
artware
Confirmed User
 
Join Date: Oct 2002
Location: the Netherlands
Posts: 268
You could try it by replacing the "\g" at the end of each line with a semicolon ";".
artware is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-04-2007, 04:25 AM   #5
spacedog
Yes that IS me. Bitch.
 
Industry Role:
Join Date: Nov 2001
Posts: 14,149
Quote:
Originally Posted by artware View Post
You could try it by replacing the "\g" at the end of each line with a semicolon ";".

That worked.. thank you.
spacedog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.