vbGore Free Online RPG Engine

Revolutionizing Visual Basic ORPG Development
It is currently Wed May 22, 2013 7:44 am

All times are UTC - 8 hours




Post new topic Reply to topic  [ 15 posts ] 
Author Message
 Post subject: MySQL returned error: "Class not registered"
PostPosted: Sat May 10, 2008 9:20 pm 
Magic Eight Ball

Joined: Sat May 10, 2008 9:10 pm
Posts: 8
Alright.... I'mma just slap up the data...
Screen shot of the error message:
http://img380.imageshack.us/img380/664/70877985qg0.jpg
Log file "CodeTracker.log"
Quote:
Call Var_Get(C:\Documents and Settings\Gamma\Desktop\vbGORE\ServerData\Server.ini,MYSQL,User)
Rtrn Var_Get = root
Call Var_Get(C:\Documents and Settings\Gamma\Desktop\vbGORE\ServerData\Server.ini,MYSQL,Password)
Rtrn Var_Get =
Call Var_Get(C:\Documents and Settings\Gamma\Desktop\vbGORE\ServerData\Server.ini,MYSQL,Database)
Rtrn Var_Get = vbgore
Call Var_Get(C:\Documents and Settings\Gamma\Desktop\vbGORE\ServerData\Server.ini,MYSQL,Host)
Rtrn Var_Get = 127.0.0.1
Call Var_Get(C:\Documents and Settings\Gamma\Desktop\vbGORE\ServerData\Server.ini,MYSQL,Port)
Rtrn Var_Get = 3306
Call Server_Unload()


and serverfps.txt is empty.



When I ran the server through vb6 to try to catch what like caused it... nothing... I have never had any problems connecting to mysql database before. The version of mysql is correct and all. I can connect to it with SQLyog, so.... I dunno... maybe someone can help me here. =/ I can't even get the stuff started to start learning the code's anatomy T_T


Top
 Profile  
 
 Post subject: Re: MySQL returned error: "Class not registered"
PostPosted: Sat May 10, 2008 9:46 pm 
Bytewise Operator

Joined: Tue Jan 08, 2008 7:31 pm
Posts: 127
Location: Phoenix, AZ.
is the username and password correct? Also did you setup the vbgore database and import the SQL?


Top
 Profile  
 
 Post subject: Re: MySQL returned error: "Class not registered"
PostPosted: Sat May 10, 2008 10:15 pm 
Magic Eight Ball

Joined: Sat May 10, 2008 9:10 pm
Posts: 8
Psychoboy wrote:
is the username and password correct? Also did you setup the vbgore database and import the SQL?

I've checked the setting thoroughly. The character set is latin1, the username is correct, the password is correct, (I even made multiple dummy accounts to make sure it wasn't just the fact that I used root user without a password), I've changed 127.0.0.1 to localhost to make sure that wasn't the problem, the database has been fully imported and the setting has been adjusted for it too.

It's not a problem of "if the server is connecting to mysql", it's certainly connecting. It's a matter of the error being returned. I assume MySQL is returning the error, but it might be VB. I'm too amateur to know what is exactly returning the error. =/


Top
 Profile  
 
 Post subject: Re: MySQL returned error: "Class not registered"
PostPosted: Sat May 10, 2008 10:28 pm 
Bytewise Operator

Joined: Tue Jan 08, 2008 7:31 pm
Posts: 127
Location: Phoenix, AZ.
Which ODBC did you installed 5 or 3.51?


Top
 Profile  
 
 Post subject: Re: MySQL returned error: "Class not registered"
PostPosted: Sat May 10, 2008 10:31 pm 
Magic Eight Ball

Joined: Sat May 10, 2008 9:10 pm
Posts: 8
Psychoboy wrote:
Which ODBC did you installed 5 or 3.51?


I have mySQL Connector/ODBC 3.51 installed.


Top
 Profile  
 
 Post subject: Re: MySQL returned error: "Class not registered"
PostPosted: Sat May 10, 2008 10:36 pm 
Bytewise Operator

Joined: Tue Jan 08, 2008 7:31 pm
Posts: 127
Location: Phoenix, AZ.
try putting a break point in MySQL_Init() at the beginning and just step through it and see what line it actually errors on. (it should jump straight to the error handling code after the line fails)


Top
 Profile  
 
 Post subject: Re: MySQL returned error: "Class not registered"
PostPosted: Sat May 10, 2008 10:47 pm 
Magic Eight Ball

Joined: Sat May 10, 2008 9:10 pm
Posts: 8
Psychoboy wrote:
try putting a break point in MySQL_Init() at the beginning and just step through it and see what line it actually errors on. (it should jump straight to the error handling code after the line fails)


it went from
Code:
DB_RS.Open "SELECT * FROM banned_ips WHERE 0=1", DB_Conn, adOpenStatic, adLockOptimistic


to
Code:
DB_Conn.Errors.Refresh

which just goes to giving you the "unknown error" message that also tells you what MySQL said the error is.... which is "Class not registered"

=/ I assess it has something to do with that query.... that query actually does look kinda odd..... All of the SQL queries look screwy.... what's with "0="? Shouldn't it just be "SELECT * FROM banned_ips"?!


Top
 Profile  
 
 Post subject: Re: MySQL returned error: "Class not registered"
PostPosted: Sat May 10, 2008 10:49 pm 
Bytewise Operator

Joined: Tue Jan 08, 2008 7:31 pm
Posts: 127
Location: Phoenix, AZ.
The query is fine.

Connect to the DB via SQLog and make sure the banned_ips table exists.


Top
 Profile  
 
 Post subject: Re: MySQL returned error: "Class not registered"
PostPosted: Sat May 10, 2008 10:55 pm 
Magic Eight Ball

Joined: Sat May 10, 2008 9:10 pm
Posts: 8
Psychoboy wrote:
The query is fine.

Connect to the DB via SQLog and make sure the banned_ips table exists.

Yeah, the tables all exist.

Image


Top
 Profile  
 
 Post subject: Re: MySQL returned error: "Class not registered"
PostPosted: Sat May 10, 2008 10:56 pm 
Bytewise Operator

Joined: Tue Jan 08, 2008 7:31 pm
Posts: 127
Location: Phoenix, AZ.
theres your problem... you said your database settings were correct...
in the server.ini cahnge the database setting to projectdungeon


Top
 Profile  
 
 Post subject: Re: MySQL returned error: "Class not registered"
PostPosted: Sat May 10, 2008 10:59 pm 
Magic Eight Ball

Joined: Sat May 10, 2008 9:10 pm
Posts: 8
Psychoboy wrote:
theres your problem... you said your database settings were correct...
in the server.ini cahnge the database setting to projectdungeon

I noted that, that setting is propper.... x_X..........................

Settings.ini
Code:
Database=projectdungeon


Top
 Profile  
 
 Post subject: Re: MySQL returned error: "Class not registered"
PostPosted: Sat May 10, 2008 11:01 pm 
Bytewise Operator

Joined: Tue Jan 08, 2008 7:31 pm
Posts: 127
Location: Phoenix, AZ.
GamerSaga wrote:
Psychoboy wrote:
theres your problem... you said your database settings were correct...
in the server.ini cahnge the database setting to projectdungeon

I noted that, that setting is propper.... x_X..........................

Settings.ini
Code:
Database=projectdungeon

but the log you posted did not say that. You sure you changed the setting at the correct location? or was that log from before that change?


Top
 Profile  
 
 Post subject: Re: MySQL returned error: "Class not registered"
PostPosted: Sat May 10, 2008 11:03 pm 
Magic Eight Ball

Joined: Sat May 10, 2008 9:10 pm
Posts: 8
Psychoboy wrote:
GamerSaga wrote:
Psychoboy wrote:
theres your problem... you said your database settings were correct...
in the server.ini cahnge the database setting to projectdungeon

I noted that, that setting is propper.... x_X..........................

Settings.ini
Code:
Database=projectdungeon

but the log you posted did not say that. You sure you changed the setting at the correct location? or was that log from before that change?


Yeah, I renamed the database and edited that setting since I made that post. I've edited many variables since I made my initial post xD.


Top
 Profile  
 
 Post subject: Re: MySQL returned error: "Class not registered"
PostPosted: Sat May 10, 2008 11:04 pm 
Bytewise Operator

Joined: Tue Jan 08, 2008 7:31 pm
Posts: 127
Location: Phoenix, AZ.
message me on an IM be easier this way we dont fill this thread up with this going back and forth and once ya got a solution post it =P


Top
 Profile  
 
 Post subject: Re: MySQL returned error: "Class not registered"
PostPosted: Sun May 11, 2008 1:11 am 
Magic Eight Ball

Joined: Sat May 10, 2008 9:10 pm
Posts: 8
Well, after sitting down for a while and trying multiple things, we didn't come up with any solution. Last thing I tried was reinstalling 'mysql-connector-odbc-3.51.25-win32.msi' and it didn't help the situation.

We did find out that DB_Conn returns "Undefined error" when
Code:
DB_RS.Open "SELECT * FROM banned_ips WHERE 0=1", DB_Conn, adOpenStatic, adLockOptimistic

is ran. =/


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 15 posts ] 

All times are UTC - 8 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group