MariaDB - AddUser

Post Reply
User avatar
MarioG
Posts: 1356
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR

MariaDB - AddUser

Post by MarioG »

Buenos dias
Con TDolphin tengo esta función :AddUser( "%", AllTrim(cUser), AllTrim(cPswUser), shIni["MARIADB"]["database"],, "CREATE,INSERT,UPDATE,DELETE,SELECT,CREATE VIEW,SHOW VIEW" )

Cual es su equivalente con FWNativo

gracias
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
User avatar
FranciscoA
Posts: 1964
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Re: MariaDB - AddUser

Post by FranciscoA »

Hola Mario.
En MySql lo hago asi:

Code: Select all

oServer:Query("CREATE USER 'Roberto'@'localhost' IDENTIFIED BY 'rober'")
oServer:Query("GRANT ALL PRIVILEGES ON * . * TO 'Roberto'@'localhost'")
oServer:Query("FLUSH PRIVILEGES")
 
Francisco J. Alegría P.
Chinandega, Nicaragua.

Fwxh1204-MySql-TMySql
User avatar
MarioG
Posts: 1356
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR

Re: MariaDB - AddUser

Post by MarioG »

Buenos dias Francisco
Muchisimas gracias!
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
Post Reply