After creating a new user you need to update his privileges to grant creation of procedures, functions and so on. Here is a SQL for this.
UPDATE user SET
Select_priv="Y", Insert_priv="Y", Update_priv="Y", Delete_priv="Y", Create_priv="Y", Drop_priv="Y", Reload_priv="Y", Process_priv="Y", File_priv="Y", References_priv="Y", Index_priv="Y", Alter_priv="Y", Super_priv="Y", Create_tmp_table_priv="Y", Lock_tables_priv="Y", Execute_priv="Y", Create_view_priv="Y", Show_view_priv="Y", Create_routine_priv="Y", Alter_routine_priv="Y", Event_priv="Y", Trigger_priv="Y"
WHERE user = "xxxxx";
FLUSH PRIVILEGES;
Wednesday, November 27, 2013
MySQL privileges update for creating procedures, functions, etc.
Posted by
Unknown
at
12:20 PM
0
comments
Labels: MySQL
Saturday, December 1, 2012
MySQL PASSWORD() function in JavaScript
If you need to implement a MySQL PASSWORD() function in JavaScript - use http://code.google.com/p/crypto-js/#SHA-1 with 2 encodings.
Here is an example:
var password = "TestPassword";
var result = ("*"+CryptoJS.SHA1(CryptoJS.SHA1(password))).toUpperCase();
console.log("result : " + result);
Result will be *0F437A73F4E4014091B7360F60CF81271FB73180. If you check it with MySQL password() it will be the same:
mysql> select password("TestPassword") as result;
+-------------------------------------------+
| result |
+-------------------------------------------+
| *0F437A73F4E4014091B7360F60CF81271FB73180 |
+-------------------------------------------+
Posted by
Unknown
at
5:45 PM
15
comments
Labels: JavaScript, MySQL
Monday, June 16, 2008
Oracle analog of MySQL GROUP_CONCAT function
I was looking for Oracle analog of MySQL GROUP_CONCAT function. There is a solution on Ask Tom site. So here it is:
Posted by
Unknown
at
4:07 PM
0
comments
Wednesday, February 20, 2008
Mac OS & Database development
Since switching to Mac I was looking for good DB modeling/editing tool that will support Oracle and MySQL databases. Finally I got one...
Posted by
Unknown
at
6:51 PM
0
comments