You are here: Big Brother Bot ForumAdd-OnsEchelonExecute sql file
Pages: [1]   Go Down
  Print  
Author Topic: Execute sql file  (Read 1083 times) Bookmark and Share
Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: COD 4 , COD 6
Posts: 154
Offline Offline
« on: November 18, 2011, 04:11:26 PM »

How do you execute this file? I am running this on server 2008

3. Execute the echelon.sql script inside the directory 'sql' on
the echelon database. This will create two tables and a few
records.
Logged

Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3483
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #1 on: November 18, 2011, 04:15:08 PM »

you need a SQL administration tool such as PhpMyAdmin or MySQL Workbench
Logged

Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: COD 4 , COD 6
Posts: 154
Offline Offline
« Reply #2 on: November 18, 2011, 04:26:56 PM »

I have xampp installed which runs my b3, it has phpadmin
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3483
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #3 on: November 18, 2011, 04:44:13 PM »

there are plenty of video tutorials on how to run sql script with phpmyadmin. Please refer to them

http://www.google.com/search?q=run+sql+script+with+phpmyadmin
Logged

Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: COD 4 , COD 6
Posts: 154
Offline Offline
« Reply #4 on: November 19, 2011, 09:49:54 AM »

Thanks, ever heard of this when executing a file? Already posted on mysql fourms, still waiting for them to answer

Error Code: 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 'TYPE=MyISAM AUTO_INCREMENT=4' at line 26

It is saying something about the echelon.sql file
Logged
Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: COD 4 , COD 6
Posts: 154
Offline Offline
« Reply #5 on: November 19, 2011, 11:07:39 AM »

Thanks, ever heard of this when executing a file? Already posted on mysql fourms, still waiting for them to answer

Error Code: 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 'TYPE=MyISAM AUTO_INCREMENT=4' at line 26

It is saying something about the echelon.sql file

Got it working. I guess in the echelon sql file it is showing TYPE when it should say ENGINE
Logged
Senior Dev.
*
OS: Linux
Type: Home user
Posts: 3483
Offline Offline
WWW
Support Specialty: B3-Core, UrT/SmG/BFBC2 parsers, Plugin development
« Reply #6 on: November 19, 2011, 04:03:56 PM »

glad you got it working. This issue is a regression in MySQL v5.1.0 that is fixed in MySQL 5.1.7 if I'm not mistaken
Logged

Jr. Member
**
OS: Windows
Type: Renting Server, no B3
Gameservers: COD4
Posts: 24
Offline Offline
« Reply #7 on: December 19, 2011, 04:47:43 PM »

So how did you fix the problem?
Logged
Sr. Member
****
OS: Windows
Type: Owner dedicated server(s)
Gameservers: COD 4 , COD 6
Posts: 154
Offline Offline
« Reply #8 on: December 19, 2011, 05:14:33 PM »

Just imported the echelon.sql into the echelon database , and it works fine.
To simple, i just didn't think of it. Same way all the b3 files get imported.
Logged
Jr. Member
**
OS: Windows
Type: Renting Server, no B3
Gameservers: COD4
Posts: 24
Offline Offline
« Reply #9 on: December 22, 2011, 12:26:54 PM »

I've been trying to import the echelon.sql in the same manner and I'm getting the following error:

SQL query:

# --------------------------------------------------------
#
# Table structure for table `users`
#
 CREATETABLE`users` (

 `id` int( 11)NOTNULLAUTO_INCREMENT ,
 `username` varchar( 25)NOTNULL default'',
 `password` varchar( 32)NOTNULL default'',
 `ech_level` int( 11)NOTNULL default'0',
 `b3cod` int( 11)default NULL ,
 `b3uo` int( 11)default NULL ,
 PRIMARYKEY (`id`)
) TYPE=MYISAMAUTO_INCREMENT=2;


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 'TYPE=MyISAM AUTO_INCREMENT=2' at line 15
 
Logged
Support Hero
*
OS: Windows
Type: Gameserver Rental Co.
Gameservers: 2x CoD4, 1x BF3
Posts: 2625
Offline Offline
Owner of Host4B3.com - Over 70 bots hosted!
WWW
« Reply #10 on: December 22, 2011, 01:01:13 PM »

Edit the echelon.sql
find and replace TYPE with ENGINE.
Same and re-import.
Logged

Need B3 Bot hosting? Check out Host4B3.com
Check Twitter.com/Host4B3 for updates if the site it down.

Help will be given to those with a b3.log

System: Python 2.7.1 - B3 Source Code - Locally hosted MySQL & Apache - Win 2k3
Jr. Member
**
OS: Windows
Type: Renting Server, no B3
Gameservers: COD4
Posts: 24
Offline Offline
« Reply #11 on: December 22, 2011, 05:11:11 PM »

Thanks Mordy! That did the trick.
Logged
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  


Rate this page +1 at Google Search


SimplePortal 2.3.1 © 2008-2009, SimplePortal