I've got the #2 error while doing the guide
Well, this sucks. :(
Code:
mysql> create database peq; |
judging by the error message you didn't change your directory, you missed this part after the following line:
Click Start->Run-> and type in cmd to bring up your command prompt Now type in cd\peqdb You should be at C:\peqdb> Now type in mysql -u root -p and type in your password (from the Instance Configuration Wizard) You will now see something like this, Welcome to MySQL monitor. Commands end with ; or \g Your MySQL connection ID is 2 Server Version: 5.0.37-community-nt MySQL Community Edition <GPL> Type help; or \h for help. Type \c to clear the buffer. mysql> If that is correct, you now need to type in the following commands, pressing enter after each line. Note: changed in accordance with [http://eqemulator.net/forums/showthread.php?t=23536∞] create database peq; \u peq source load_player.sql |
But I did do that. And what is "Instance Configuration Wizard", that threw me off quite a bit.
|
Make sure you are in the directory where you extracted the load_player.sql file before you run mysql.
The instance configuration wizard helps you set up your username/password. Seeing as how you were already logged in, you don't have to worry about that part. Just an FYI, you can add the database in the command line now that you have created one. C:\peqdb\> mysql -u root -D peq -p |
I'm having the same problem as IK91. And I can't seem to find the load_player.sql file in the database or any folder. I'm just seeing 4 files. I may just try to do all over again.
If that doesn't solve it i'll post back. |
Who's database are you loading? In the PEQ database, it is there.
|
I just reinstalled everything. I'm using the PEQ. I have all the files now, however the load_player.sql command I run is still giving me a error #2. Also what is the actual directory those files should be going to? Is peqdb or peq_db because it had asked me that the directory did not exist so I created it and put it into that folder(peqdb)
|
It goes into whatever folder you want. The files just include code that helps to create the database. You can load them from any directory. Just as long as you change into that directory before executing the mysql -u root -p command.
|
I don't know. I pretty much went right by what the info told on the server creation page. It just doesn't seem to be locating the load_player.sql file, although it's right there. Isn't there any way of extracting that without using the mysql command line? Otherwise I'm just going to try at a later time. Thx for the help though.
|
You can do it manually or copy/paste.
Copy the block of code, right click the cmd window and select paste or you can manually type each line in... More prone to typos though. |
Well I give up. I've tried numerous times to set this up and always get stuck at the source load_player.sql . it just gives me "Failed to open file 'load_player.sql', error: 2"
I've also tried copying/pasting files to the command prompt window and get the same error. I remember setting up a server awhile back(2 yrs ago) and didn't have this trouble. Oh well, thx for the help though. I'll keep searching for some answers on the forum or other site |
Ensure all the tables are in the same folder as your load_player.sql and make sure your load_player.sql looks like this:
Code:
source aa_timers.sql; |
Yes it looks exactly like that, but when I paste it to the command prompt window, it just gives all files the failed to load error:2
|
It looks to me that you've forgot to end your command with a ;
Try Code:
source load_player.sql; Code:
\. c:/YOURDIRECTORY/load_player.sql; |
But if he didn't end with a semi-colon, it wouldn't give him error 2 file not found. It would give him the ->.
Are you starting mysql from the directory where these .sql files are located? start -> run -> cmd Code:
C:\Documents and Settings\Your Name>cd \peq |
All times are GMT -4. The time now is 08:37 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.