User Information from MySQL

This example returns user information from MySQL:

// Begin of Example
Use Mertech.inc
String sID sUser sHost sDB sCommand sTime sState sInfo
Login "localhost" "root" "mertech" "MDSMYSQL"
SQL_SET_STMT TO "show processlist" SQL_PREPARE_STMT SQL_EXECUTE_STMT
Repeat
SQL_FETCH_NEXT_ROW into sID sUser sHost sDB sCommand sTime sState sInfo
[ Found ] Begin
Showln "ID : "sID
Showln "User : "sUser
Showln "Host : "sHost
Showln "DB : "sDB
Showln "Command: "sCommand
Showln "Time : "sTime
Showln "State : "sState
Showln "Info : "sInfo
Showln
Showln "Presse any key ..."
Showln
Inkey Pageend
End
Until [ Not Found ]
Showln Showln "Ok ...." Inkey Pageend
// End of Example

 

 

Why Migrate from Btrieve to PostgreSQL and other Relational Databases?

Why Migrate from Btrieve to PostgreSQL and other Relational Databases?

Introduction Many independent software vendors (ISV) and corporate users still rely on applications that use a category of database collective called...

Read More
Four Challenges in Converting COBOL Applications from ISAM Databases to Relational Databases

Four Challenges in Converting COBOL Applications from ISAM Databases to Relational Databases

COBOL applications are the foundation of numerous essential business functions, especially within the banking, insurance, and government sectors....

Read More
Application Modernization 101: Ultimate Guide to Digital Transformation

Application Modernization 101: Ultimate Guide to Digital Transformation

Imagine breaking free from the constraints of old, monolithic systems and embracing the agility and innovation of cloud-based solutions.

Read More