Go Back   EQEmulator Home > EQEmulator Forums > Archives > Archive::Support > Archive::Windows Servers

Archive::Windows Servers Archive area for Windows Servers's posts that were moved here after an inactivity period of 90 days.

Reply
 
Thread Tools Display Modes
  #1  
Old 04-18-2004, 11:19 AM
smuggler's Avatar
smuggler
Sarnak
 
Join Date: Apr 2004
Location: Okaloosa, FL
Posts: 36
Default Issues when connecting to database?

I attempted to use the following programs to view/edit my sql database, and none of them were able to connect to my database...

EQEmu Admin
Magoo's Item Editor
SQL Front

It's driving me insane because each of those programs have successfully worked for me before, and I haven't done anything differently (to my knowledge) than in previous situations.

The only clue any of the programs gives me is a vague message about serverside permissions. Basically, SQL Front told me that it does not allow connections to servers that screen connections (my PC was the server in question, and was protected by Zone Labs firewall software). That in itself is rather fucked up, but even after I shut down ZA, it continued to give the message. That's just plain bonkers.

Anyone experience this problem before?
Reply With Quote
  #2  
Old 04-18-2004, 12:47 PM
Monrezz's Avatar
Monrezz
Dragon
 
Join Date: Mar 2003
Location: #loc
Posts: 745
Default

You need to run the GRANT statement.
__________________

kRPG Profile
Reply With Quote
  #3  
Old 04-20-2004, 10:32 AM
smuggler's Avatar
smuggler
Sarnak
 
Join Date: Apr 2004
Location: Okaloosa, FL
Posts: 36
Default Grant command

I have attempted to run the grant line many a time, but to no avail. Is there some setting that I must reset before I am able to successfully grant myself the privilages to use my database?

Code:
mysql> grant all privilages on *.* to 'some_user'@localhost identified by 'some_pass' with grant option;
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 near 'privilages on *.* to 'some_user'@localhost identified by 'some_pass' with grant option' at line 1
of course, for security purposes, I substituted 'some_user' and 'some_pass' for my username and password. this has been the same message i've gotten every time I've used the grant command. no dice.

any advice? i knew that SQL was picky, but obviously it in league with my system is lord king of picky. i can't seem to resolve this problem...
Reply With Quote
  #4  
Old 04-20-2004, 10:36 AM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

Quote:
privilages
should be privileges
Reply With Quote
  #5  
Old 04-20-2004, 10:36 AM
Monrezz's Avatar
Monrezz
Dragon
 
Join Date: Mar 2003
Location: #loc
Posts: 745
Default

GRANT ALL PRIVILEGES ON eq.* TO username@localhost IDENTIFIED BY 'password' WITH GRANT OPTION;
__________________

kRPG Profile
Reply With Quote
  #6  
Old 04-20-2004, 10:50 AM
smuggler's Avatar
smuggler
Sarnak
 
Join Date: Apr 2004
Location: Okaloosa, FL
Posts: 36
Default Thanks

Thank you Monrezz, you made my day. =D

That worked like a charm!

Ah, yeah I did misspell privileges, but only on the forum, that wasn't the reason for the syntax error. Thanks anyways, Derision.
Reply With Quote
  #7  
Old 04-20-2004, 11:18 AM
smuggler's Avatar
smuggler
Sarnak
 
Join Date: Apr 2004
Location: Okaloosa, FL
Posts: 36
Default And yet...

EQEmu Admin still fails to connect to the database?? What the hell is going on?

I'm going to try the same grant command as above but with sql.* as well, to see if that helps
Reply With Quote
  #8  
Old 04-20-2004, 11:56 AM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

If you try mysql-front,

Specify 127.0.0.1 in the Hostname/IP box:

In the user and password boxes, put the user and password you have in c:\windows\my.ini

In the database, put eq (or whatever you called your EQEmu database).

What exact error do you get ?
Reply With Quote
  #9  
Old 04-20-2004, 12:03 PM
smuggler's Avatar
smuggler
Sarnak
 
Join Date: Apr 2004
Location: Okaloosa, FL
Posts: 36
Default Exact error...

Code:
Exception: Can not connect to SQL server

The admin tool wasn't able to connect to database "eq" at host 127.0.0.1.
Please go to the Preferences dialog and set the username, password, database, and host values.
I've also tried "localhost" and my internal IP address as the host value. This is all with using EQEmu Admin, but I've tried a few others as well and I get the same message.

I'm using ODBC driver version 3.51, I think I might swap down to an earlier version. I recall someone saying that 3.51 is a bit glitchy.
Reply With Quote
  #10  
Old 04-20-2004, 12:15 PM
Derision
Developer
 
Join Date: Feb 2004
Location: UK
Posts: 1,540
Default

Well, I don't know what your problem is, but if you are using EQEmu Admin, or mysql front, or any other program written to use the MYSql API, you don't need to use ODBC at all.

ODBC is a database abstraction layer. Developers can write their apps to talk to ODBC and if you install the ODBC driver for Oracle, DB2, MS SQL Server, MYSql, or whatever, then that app can talk to that Database.

FQAdmin and mysql-front are native MYSQL applications and don't need ODBC.
Reply With Quote
  #11  
Old 04-20-2004, 12:26 PM
smuggler's Avatar
smuggler
Sarnak
 
Join Date: Apr 2004
Location: Okaloosa, FL
Posts: 36
Default Ah... I see

I just assumed that it was necessary for those programs, but I suppose it doesn't really matter either way. I'm just gonna try a complete wipe of all Emu/SQL related material and hopefully that will take care of the problem.
Reply With Quote
Reply


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 06:45 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