This page is a copy/paste-friendly guide for installing CIERA against a demo MySQL database dump named ciera_demo.sql so a tester can evaluate the system locally.
ciera_demo loaded from ciera_demo.sql.CIERA with password CIERA for demo testing.App.config connection string.Demo-only warning: The credentials below match the values already used by the project configuration and are intended only for local demo/test machines. Use unique credentials for shared, production, or internet-accessible databases.
Install these on a Windows test workstation:
3306.mysql) available from PowerShell or Command Prompt.ciera_demo.sql.CIERA is a Visual Basic/.NET Framework solution. The projects target .NET Framework 4.8, and the solution contains the Launcher, SetGenVB, SparcQry dependency, and test projects.
powershell
C:\src\CIERA
ciera_demo.sql into the repository root:powershell
C:\src\CIERA\ciera_demo.sql
powershell
cd C:\src\CIERA
Run the following commands from PowerShell or Command Prompt. Replace root with a MySQL administrator account if your local server uses a different admin user.
mysql -u root -p -e "CREATE DATABASE IF NOT EXISTS ciera_demo CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
mysql -u root -p ciera_demo < ciera_demo.sql
If the dump already contains a CREATE DATABASE or USE statement, import it with:
mysql -u root -p < ciera_demo.sql
Create a local demo user that matches the credentials expected by the sample CIERA configuration:
mysql -u root -p -e "CREATE USER IF NOT EXISTS 'CIERA'@'localhost' IDENTIFIED BY 'CIERA'; GRANT ALL PRIVILEGES ON ciera_demo.* TO 'CIERA'@'localhost'; FLUSH PRIVILEGES;"
If testers will connect from another machine, also create or grant a host-specific user, for example:
mysql -u root -p -e "CREATE USER IF NOT EXISTS 'CIERA'@'%' IDENTIFIED BY 'CIERA'; GRANT ALL PRIVILEGES ON ciera_demo.* TO 'CIERA'@'%'; FLUSH PRIVILEGES;"
Security note: Only use
'CIERA'@'%'on an isolated demo network. Prefer a specific client hostname or IP address whenever possible.
Test that the demo user can connect and see tables:
mysql -h localhost -P 3306 -u CIERA -pCIERA -e "SHOW TABLES;" ciera_demo
You should see the tables imported from ciera_demo.sql. If the command fails, fix the MySQL server, firewall, user, or password before continuing.
ciera_demoCIERA projects link to the shared repository-level App.config, so update the cieraConnection connection string there before building or running.
text
C:\src\CIERA\App.config
<connectionStrings> section, replace the active cieraConnection entry with this local demo connection:xml
<add name="cieraConnection"
providerName="MySql.Data.MySqlClient"
connectionString="server=localhost; port=3306; database=ciera_demo; uid=CIERA; pwd=CIERA; SslMode=none; Connection Timeout=99999" />
For a database hosted on another machine, replace localhost with the database server name or IP address:
<add name="cieraConnection"
providerName="MySql.Data.MySqlClient"
connectionString="server=YOUR_MYSQL_SERVER; port=3306; database=ciera_demo; uid=CIERA; pwd=CIERA; SslMode=none; Connection Timeout=99999" />
Use Visual Studio or command line.
CIERA.sln.From the repository root:
nuget restore CIERA.sln
CIERA.sln in Visual Studio.From a Visual Studio Developer Command Prompt in the repository root:
msbuild CIERA.sln /t:Restore,Build /p:Configuration=Debug
If msbuild is not found, open Developer Command Prompt for VS 2022 or use Visual Studio to build.
From Visual Studio:
From the build output folder, run one of the generated executables, for example:
.\Launcher\bin\Debug\CIERA Launcher.exe
or:
.\SetGenVB\bin\Debug\SetGenVB.exe
After the application opens:
ciera_demo appears.Access denied for user 'CIERA'@'localhost'Re-run the user creation/grant command in step 3 and verify the password in App.config is CIERA.
Unknown database 'ciera_demo'Create the database and import the dump again:
mysql -u root -p -e "CREATE DATABASE IF NOT EXISTS ciera_demo CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
mysql -u root -p ciera_demo < ciera_demo.sql
Make sure the active, uncommented cieraConnection entry in the repository-level App.config points to database=ciera_demo. Rebuild the solution after saving App.config so the updated configuration is copied to the output folder.
mysql is not recognizedAdd the MySQL bin directory to your PATH, or run commands with the full path, for example:
& "C:\Program Files\MySQL\MySQL Server 8.0\bin\mysql.exe" -u root -p
Check all of the following:
3306.'CIERA'@'tester-host' or 'CIERA'@'%' for isolated demos.App.config uses the server hostname/IP instead of localhost.To return to a clean demo state, drop and reload the database:
mysql -u root -p -e "DROP DATABASE IF EXISTS ciera_demo; CREATE DATABASE ciera_demo CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
mysql -u root -p ciera_demo < ciera_demo.sql
Then restart CIERA.