Connecting and users
SignalSQL speaks the MySQL/MariaDB wire protocol on port 3308 by default,
so any MySQL-compatible client connects without special drivers. The single
database is named main (see Limitations).
Default login — change it first
After installation a default user root with the password password is
present. Before using SignalSQL in any connected environment, change this
password to a strong one (see Managing users below).
Command line
mysql -h 127.0.0.1 -P 3308 -u root main
From your application
Use your language’s standard MySQL client and point it at port 3308.
PHP (mysqli)
<?php
$servername = "localhost";
$username = "your_username";
$password = "your_password";
$database = "main";
$conn = new mysqli($servername, $username, $password, $database);
if ($conn->connect_error) {
die("Connection failed: " . $conn->connect_error);
}
echo "Connected successfully";
// SignalSQL operations here, e.g. read all input signals:
// $conn->query("SELECT * FROM input");
$conn->close();
?>
Node.js (mysql2)
import * as mysql from 'mysql2/promise';
const pool = mysql.createPool({
host: 'localhost',
user: 'your_username',
password: 'your_password',
database: 'main',
});
const connection = await pool.getConnection();
const [rows] = await connection.execute('SELECT * FROM input');
console.log('Query Result:', rows);
connection.release();
Prepared statements and parameter binding work as usual.
Managing users
Users live in the system.user table.
Change a password:
UPDATE system.user SET Password = 'new_password' WHERE Username = 'your_username';
Create a new user:
INSERT INTO system.user VALUES (0, 'your_username', 'your_password');
Replace the placeholders with real values. Start by changing the default root
password.
phpMyAdmin
Add SignalSQL as a server in phpMyAdmin’s config.inc.php (host 127.0.0.1,
port 3308) and browse tables, run queries, and inspect the schema through the
familiar UI.
Grafana
Add a MySQL data source pointing at 127.0.0.1:3308, database main. Your
signal and logger tables become time-series panels and dashboards.
Exposing on the network
By default the server listens only on the local machine (Listen = 127.0.0.1);
set Listen = 0.0.0.0 to accept connections from other machines. Note that SignalSQL does not support TLS and
scrambles credentials only weakly on the wire — keep it on a trusted network. See
Configuration and Limitations.