MySQL and HMG
Moderator: Rathinagiri
- Rathinagiri
- Posts: 5480
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: MySQL and HMG
I had got your code and found it very much useful Sudip. Thanks a lot for sharing the same. Gr8.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: MySQL and HMG
You know how happy I am, to know that from yourathinagiri wrote:I had got your code and found it very much useful Sudip. Thanks a lot for sharing the same. Gr8.

Especially, if the code is written after a very busy day.

Today is Sunday, but I have to create some entry modules and reports (created with another software tool

I shall wait for your finished dbf2mysql.
Thank you very much.
With best regards.
Sudip
With best regards,
Sudip
Sudip
Re: MySQL and HMG
Hello Rathi,
I found some problem regarding date value. I changed your C2Sql functon.
Please check this and send your comments.
Regards.
Sudip
I found some problem regarding date value. I changed your C2Sql functon.
Code: Select all
function C2SQL(Value)
local cValue := ""
local cFormatoDaData := set(4)
do case
case Valtype(Value) == "N"
cValue := AllTrim(Str(Value))
case Valtype(Value) == "D"
if !empty(Value)
cValue := "'"+DTOS(value)+"'"
else
cValue := "'00000000'"
endif
case Valtype(Value) $ "CM"
IF Empty( Value)
cValue="''"
ELSE
cValue := "'"
Value:=DATATOSQL(value)
cValue+= value+ "'"
ENDIF
case Valtype(Value) == "L"
cValue := AllTrim(Str(iif(Value == .F., 0, 1)))
otherwise
cValue := "''" // NOTE: Here we lose values we cannot convert
endcase
return cValue
Regards.
Sudip
With best regards,
Sudip
Sudip
- Rathinagiri
- Posts: 5480
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: MySQL and HMG
Oh. Thanks.
Now, it is simple. Isn't it?
Now, it is simple. Isn't it?
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: MySQL and HMG
Hello,
How can I connect MySql database from the client computer connected through LAN?
TIA.
Regards.
Sudip
How can I connect MySql database from the client computer connected through LAN?
TIA.
Regards.
Sudip
With best regards,
Sudip
Sudip
- Rathinagiri
- Posts: 5480
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: MySQL and HMG
1. The host name would be the name of the computer (not 'localhost') where MySQL server is installed.
2. Remember to add port number 3306 (default, change if changed) in the firewall table to allow it in both the machines.
That's all!
2. Remember to add port number 3306 (default, change if changed) in the firewall table to allow it in both the machines.
That's all!
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: MySQL and HMG
Thanks a lot! 
Should I need to install MySql in client computer also?
Regards.
Sudip

Should I need to install MySql in client computer also?
Regards.
Sudip
With best regards,
Sudip
Sudip
Re: MySQL and HMG
I think, you don't need to install mysql on client computer.
Hi Rathi!
I have a question - You are viewing mysql database with grid - all data is captured in a static table. But what about network working - where few users can work on the same database, all can add new records, delete or edit them? How do you refresh your view?
I always use Browse with *.dbf files - because browse is refreshing view automatically.
I have no experiences with mysql, but try to learn something new...
Hi Rathi!
I have a question - You are viewing mysql database with grid - all data is captured in a static table. But what about network working - where few users can work on the same database, all can add new records, delete or edit them? How do you refresh your view?
I always use Browse with *.dbf files - because browse is refreshing view automatically.
I have no experiences with mysql, but try to learn something new...
- Rathinagiri
- Posts: 5480
- Joined: Tue Jul 29, 2008 6:30 pm
- DBs Used: MariaDB, SQLite, SQLCipher and MySQL
- Location: Sivakasi, India
- Contact:
Re: MySQL and HMG
Yes. No need to install anything except the HMG application in the client computer.
Since MySQL is a back end server, always the user has to give request to get the result.
We have to manually refresh. If we want, we can do with a timer control to refresh frequently.
Since MySQL is a back end server, always the user has to give request to get the result.
We have to manually refresh. If we want, we can do with a timer control to refresh frequently.
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
South or North HMG is worth.
...the possibilities are endless.
Re: MySQL and HMG
I think, this method overloads network and server. But, I think other applications (not HMG) are working with the same method.