Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 27852

WebMatrix fails with mySQL

$
0
0

Hi there,

I have just started to work with WebMatrix and stuck at the first place. I am trying to use the template "Starter site" by changing default databse into a MySQL database. I have the latest MySQL drivers installed.

However I cannot successfully create an account. This line throws an MySQL error:

Error line: 

var token = WebSecurity.CreateAccount(email, password, requireEmailConfirmation);
Error:
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 '[UserId] FROM [UserProfile] WHERE (UPPER([Email]) = 'TE3ST@TEST.DE')'

I can fully understand that the server is trying to use SQL formatted ( [ ] ) query to MySQL server. How do I recompile or tell the WebSecurity.CreateAccount to use MySQL formatted queries?

Any idea?

Thank you in advance

Krish


Viewing all articles
Browse latest Browse all 27852

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>