MariaDB - AddUser

MariaDB - AddUser

Postby MarioG » Tue Feb 11, 2020 1:47 pm

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
MarioG
 
Posts: 1380
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR

Re: MariaDB - AddUser

Postby FranciscoA » Tue Feb 11, 2020 10:23 pm

Hola Mario.
En MySql lo hago asi:
Code: Select all  Expand view  RUN
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.

Fwxh-MySql-TMySql
User avatar
FranciscoA
 
Posts: 2159
Joined: Fri Jul 18, 2008 1:24 am
Location: Chinandega, Nicaragua, C.A.

Re: MariaDB - AddUser

Postby MarioG » Wed Feb 12, 2020 10:41 am

Buenos dias Francisco
Muchisimas gracias!
Resistencia - "Ciudad de las Esculturas"
Chaco - Argentina
User avatar
MarioG
 
Posts: 1380
Joined: Fri Oct 14, 2005 1:28 pm
Location: Resistencia - Chaco - AR


Return to FiveWin para Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 26 guests