EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=587)
-   -   load_player.sql.. I just can't figure it out... (https://www.eqemulator.org/forums/showthread.php?t=32499)

Dayhawk 11-17-2010 10:11 PM

load_player.sql.. I just can't figure it out...
 
I have been trying for over an hour and ahalf trying to figure out the issue here. I got the DB to source without an issue but when it comes to load_player.sql it wont happen. Here is a clipit of what is happening...

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

ERROR:
Unknown command '\l'.
-> source c:\peqdb\peqdatabase\load_player.sql;
--------------
C:eqdbeqdatabase\load_player.sql
source c:
--------------

--------------
C:eqdbeqdatabase\load_player.sql
source c:eqdb
--------------

ERROR:
Unknown command '\l'.
ERROR 1064 (42000): 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 'C:eqd
beqdatabase\load_player.sql
source c:eqdbeqdatabase\load_player.sql' at line 1
mysql>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Please if you could post a detailed description on the fix. Thank you.

Dayhawk~

Brewhaus 11-17-2010 10:53 PM

I don't remember the exact syntax, but try putting the path in quotes, try using forward slashes, try using relative paths, etc..

Dayhawk 11-17-2010 10:59 PM

When trying to do it with forward slashes it started working but all files FAILED with "error 2". Been trying for 2 hours now everything.

Akkadius 11-17-2010 11:04 PM

Quote:

Originally Posted by Dayhawk (Post 194281)
I have been trying for over an hour and ahalf trying to figure out the issue here. I got the DB to source without an issue but when it comes to load_player.sql it wont happen. Here is a clipit of what is happening...

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

ERROR:
Unknown command '\l'.
-> source c:\peqdb\peqdatabase\load_player.sql;
--------------
C:eqdbeqdatabase\load_player.sql
source c:
--------------

--------------
C:eqdbeqdatabase\load_player.sql
source c:eqdb
--------------

ERROR:
Unknown command '\l'.
ERROR 1064 (42000): 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 'C:eqd
beqdatabase\load_player.sql
source c:eqdbeqdatabase\load_player.sql' at line 1
mysql>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Please if you could post a detailed description on the fix. Thank you.

Dayhawk~

You have to put the load player folder in the same directory in which you execute the .sql

Make sure you have a database created and have the database selected.

run the command as source directorypath\load_player.sql; <---- semi-colon

Dayhawk 11-17-2010 11:08 PM

I put the player tables folder in the same directory as the DB in MYSQL folder. I tried what you told me to od and it still has not worked.

Akkadius 11-17-2010 11:11 PM

Quote:

Originally Posted by Dayhawk (Post 194285)
I put the player tables folder in the same directory as the DB in MYSQL folder. I tried what you told me to od and it still has not worked.

Make sure it is in the bin folder, then you won't have to specify any directory just:

Code:

source load_player.sql;

Dayhawk 11-17-2010 11:16 PM

Put the player_tables folder and the load_players.sql in the bin folder?

Dayhawk 11-17-2010 11:18 PM

Tried what you said, put it in ben folder still not working, getting Error 2

Akkadius 11-17-2010 11:21 PM

Quote:

Originally Posted by Dayhawk (Post 194288)
Tried what you said, put it in ben folder still not working, getting Error 2

Have you created and selected a database prior to this operation? What is your error message now.

Dayhawk 11-17-2010 11:34 PM

Akk,

After moving the Player_Tables folder to "bin" in the Mysql folder along with load_player.sql then rebooting CMD, I slected the database that i created "peq" and typed:

source load_player.sql

Still recieving error 2.

Dayhawk 11-17-2010 11:40 PM

Failed to open file 'load_player.sql', error: 2

Akkadius 11-17-2010 11:47 PM

Quote:

Originally Posted by Dayhawk (Post 194290)
Akk,

After moving the Player_Tables folder to "bin" in the Mysql folder along with load_player.sql then rebooting CMD, I slected the database that i created "peq" and typed:

source load_player.sql

Still recieving error 2.

Need a semi colon after your command, for some reason it's picky about it.

source load_player.sql;

Dayhawk 11-17-2010 11:49 PM

Used a semi colon, failed.

joligario 11-18-2010 12:53 AM

You need to remember that it is loading other sql files. Some systems won't follow the path once it starts loading or it will follow the path relative to where your loading the SQL from. The way I like to do it is to leave the files and folders in tact the way you get them from the svn (well I extract the database zip file of course) and then I start mysql from within the directory where the load_player and database revision files are located. If it were a single sql file, it would work using source "folder\file.sql"; method, but when the .sql file contains a chain, a lot of systems don't like to follow the path relative to your sql.

Dayhawk 11-18-2010 02:14 AM

Got everything working now when I launch my server it is showing error

eqlaunch.exe - unable to locate DLL

The dynamic link library MSVCP90.dll could not be found in the specified path
D:\eqemu;.;C:\winnt\system32;C:\winnt\system;C... so on and so forth...


All times are GMT -4. The time now is 06:40 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.