Scripting/Squirrel/Functions/mysql change user: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "Changes the current MySQL session authentication. == Syntax == mysql_change_user ( MySQLConnection handler, string new_username, string new_password ) == Arguments == * ''My...") |
No edit summary |
||
Line 2: | Line 2: | ||
== Syntax == | == Syntax == | ||
mysql_change_user ( MySQLConnection handler, string new_username, string new_password ) | <pre>mysql_change_user ( MySQLConnection handler, string new_username, string new_password )</pre> | ||
== Arguments == | == Arguments == |
Revision as of 18:57, 4 March 2016
Changes the current MySQL session authentication.
Syntax
mysql_change_user ( MySQLConnection handler, string new_username, string new_password )
Arguments
- MySQLConnection handler - A valid MySQL link/handler
- String new_username - The new username
- String new_password - The password for the new username
Return value
true on success and/or false on failure
Example
handler <- mysql_connect("localhost","writer","password","database"); if( handler ) print("Successfully connected."); else mysql_change_user(handler,"reader","password"), print("Successfully connected to read-only mode");
By KAKAN