Hi !
I connectus with the MySql database through maria_connect(). The default port is 3306. How can I have another port ?
Hi !
I connectus with the MySql database through maria_connect(). The default port is 3306. How can I have another port ?
You can suffix port number to cServerAddress with ":"
Example:
maria_Connect( "host:3455", "db", "user", "pw" )
Or
maria_Connect( "host", "db", "user", "pw", nPort )
Thank you, Mr.Rao ! I didn't know all the parameters of the maria_connect method. Where can I see them ?
#xcommand FWCONNECT <oCn> HOST <cHost> ;
[<usr:USER,LANGFOLDER> <cUser> ] ;
[ PASSWORD <cPassword>] ;
[ <db:DB,DATABASE> <cDB> ] ;
[ PORT <nPort> ] [ FLAGS <nFlags> ] ;
[ CHARSET <chrset> ] [ MESSAGES <msglang> ] [ LOCALE <locale> ] ;
=> ;
<oCn> := maria_Connect( <cHost>, [<cDB>], <cUser>, <cPassword>, [<nPort>], [<nFlags>], [<chrset>], [<msglang>], [<locale>] )