Go Back   EQEmulator Home > EQEmulator Forums > Development > Development::Development

Development::Development Forum for development topics and for those interested in EQEMu development. (Not a support forum)

Reply
 
Thread Tools Display Modes
  #1  
Old 09-28-2006, 04:03 PM
Worktruck
Fire Beetle
 
Join Date: Sep 2006
Location: FL
Posts: 3
Default

I am stuck on this portion of your setup Kayot:

Modify this with the IP of the computer that will be connecting to the server. Admin is the username.

INSERT INTO accounts VALUES (1, 'Admin', '', 0, 'mini', 250, , 0, 0, 0, 0, 'IP of Account')


I get a syntax error everytime I try to manipulate this value. I am unsure where exactly I need to place the IP address or at least what format it needs to be in. I thought I needed to replace the 0 ,0 ,0 , 0, but I get an error with that. I've tried a couple of different ways to enter this in and they have not worked. I'm also wondering if there needs to be a semi colon at the end of this command.
Reply With Quote
  #2  
Old 09-29-2006, 02:58 AM
rojadruid
Discordant
 
Join Date: May 2005
Location: Smith Falls, Ontario, Canada
Posts: 283
Default

Quote:
Originally Posted by Worktruck
I am stuck on this portion of your setup Kayot:

INSERT INTO accounts VALUES (1, 'Admin', '', 0, 'mini', 250, , 0, 0, 0, 0, 'IP of Account')

I am unsure where exactly I need to place the IP address or at least what format it needs to be in.
Where you put the IP address is staring you right in your face, if it was any clearer it would bite your head off. just replace the above with the IP of the computer you plan to play from or on.
__________________
Rojadruid

Innoruuk Server [legit]
Server Admin.
Server Status: UP
Reply With Quote
  #3  
Old 10-01-2006, 11:00 AM
Worktruck
Fire Beetle
 
Join Date: Sep 2006
Location: FL
Posts: 3
Default

Quote:
Originally Posted by rojadruid
Where you put the IP address is staring you right in your face, if it was any clearer it would bite your head off. just replace the above with the IP of the computer you plan to play from or on.
Okay, then let me make myself clearier I've tried every variation that I could think of putting that line in the data table putting it in exactly like you say:
INSERT INTO accounts VALUES (1, 'Admin', '', 0, 'mini', 250, , 0, 0, 0, 0, '192.168.0.22')

I get:
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 ' 0, 0, 0, 0, 192.168.0.22)' at line 1 1064

Which is the same error I get every time I've entered this line into the query browser.
Reply With Quote
  #4  
Old 10-01-2006, 12:55 PM
bufferofnewbies
Hill Giant
 
Join Date: Dec 2005
Location: Lurking in KY
Posts: 239
Default

Don't forget the ; at the end of the command.
Reply With Quote
  #5  
Old 10-01-2006, 02:58 PM
Worktruck
Fire Beetle
 
Join Date: Sep 2006
Location: FL
Posts: 3
Default

Quote:
Originally Posted by bufferofnewbies
Don't forget the ; at the end of the command.
I apperciate you answering me about the ; but it still will not take the command even when I put in the semicolon
Reply With Quote
  #6  
Old 10-01-2006, 03:22 PM
Aramid
Discordant
 
Join Date: May 2006
Posts: 356
Default

Try it this way....

Code:
INSERT INTO accounts VALUES (1, 'Admin', '', 0, 'mini', 250, , 0, 0, '192.168.0.22', 0, 0);
It seems you had a couple of entries out of sync.
__________________
Random Segments of Code....
Reply With Quote
  #7  
Old 10-02-2006, 01:24 AM
Angelox
AX Classic Developer
 
Join Date: May 2006
Location: filler
Posts: 2,049
Default

Quote:
Originally Posted by Worktruck
Okay, then let me make myself clearier I've tried every variation that I could think of putting that line in the data table putting it in exactly like you say:
INSERT INTO accounts VALUES (1, 'Admin', '', 0, 'mini', 250, , 0, 0, 0, 0, '192.168.0.22')

I get:
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 ' 0, 0, 0, 0, 192.168.0.22)' at line 1 1064

Which is the same error I get every time I've entered this line into the query browser.
Tell you lean how to move around better in MySql, I suggest you download and use "MySQL Query Browser" from the MySql site;
http://dev.mysql.com/downloads/gui-tools/5.0.html
MySQL Query Browser will give you a "visual" on all this and you'll be able to see better what you are doing, right or wrong. Also, if you install this, take notice of the bottom right-hand corner where there is a great help and info on what to do

Also, this one helps a lot ; MySQL Administrator 1.2 for back ups, setting privs., etc
Reply With Quote
  #8  
Old 11-01-2006, 01:09 PM
Moonracer
Fire Beetle
 
Join Date: Oct 2006
Posts: 1
Default SQL syntax error

--------------------------------------------------------------------------
when using:

INSERT INTO accounts VALUES (1, 'Admin', '', 0, 'mini', 250, , 0, 0, 0, 0, '192.168.0.22')

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 ' 0, 0, 0, 0, 192.168.0.22)' at line 1 1064
--------------------------------------------------------------------------

Worktruck, I got this same error. You may have already fixed this, but I'm going to put in what worked for me in case anyone else has this issue. To fix this error I used:

INSERT INTO account VALUES (1, 'Admin', '', 0, 'mini', 250, '', 0, 0, 0, 0, '192.168.0.22');

I needed account instead of accounts (my db was using this word). I needed to send an empty string in the seventh field (did I leave strict mode on?). I also put in a semicolon at the end of the command.

I hope this helps anyone out there that's stuck.

Moonracer
Reply With Quote
  #9  
Old 11-01-2006, 02:46 PM
GeorgeS
Forum Guide
 
Join Date: Sep 2003
Location: California
Posts: 1,474
Default

Those are Two Single quotes put together - for those that wonder what the " is. It looks like (dbl quote) '' or (two songle quote) " - similar but wrong.Mysql can use either for strings, but they must be two of each to encapsulate a string. Numeric variables can use 2 single quotes

Just FYI
GeorgeS

The MySQL King
__________________
Your source for EQ database tools
Toolshop is open for business


http://www.georgestools.chrsschb.com//
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 11:21 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3