[haXe] SPOD tutorial and MySQL

root flashmediaserver at gmail.com
Fri Apr 6 18:12:20 CEST 2007


Hello.

Trying SPOD tutorial, I figured that MySQL connection code is not  
compiling.
So, I removed 'cnx.selectDB("MyDatabase");' and added 'database  
:"MyDatabase"' to MySQL connect argument object:
	cnx = neko.db.Mysql.connect({
                 host : "localhost",
                 port : 3306,
                 user : "root",
                 pass : "",
                 socket : null,
		database :"MyDatabase"
         });
After that it compiles ok and works with SQLite db, but with 'var useMysql  
= true;' it throws following errors:

Called from tools/WebServer.nml line 481
Called from tools/WebServer.nml line 454
Called from <null> line 1
Called from Spod.hx line 9
Called from neko/db/Mysql.hx line 193
Exception : Neko_error(mysql.c(438) : Failed to connect to mysql server :  
Client does not support authentication protocol requested by server;  
consider upgrading MySQL client)

MySQL server is running and have db MyDatabase and table User.

Did I something wrong ?



More information about the Haxe mailing list