Teguh Triharto Learning Center
Best of Sharing Knowledge Number 1 In The World & In The Universe
Monday, December 8, 2025
.::: Troubleshoot MariaDB Incorrect number of arguments for PROCEDURE teguhth.spbuy; expected 15, got 14 :::.
Dari gambar error tersebut terlihat jelas penyebabnya:
Incorrect number of arguments for FUNCTION ... expected 15, got 14
Artinya: FUNCTION atau Stored Procedure spbuy (atau sptaxsample) membutuhkan 15 parameter, tapi saat dipanggil hanya diberikan 14 parameter.
. Tujuan Anda
Anda ingin mensimulasikan kasus tersebut pada database sample MariaDB dengan database contoh bernama hris.
Saya buatkan contoh struktur database, fungsi, dan pemanggilan yang benar & salah, sehingga error yang sama bisa direplikasi.
. SIMULASI DI MARIADB: Database hris
1. Buat Database Sample
CREATE DATABASE IF NOT EXISTS hris;
USE hris;
Friday, December 5, 2025
Tuesday, December 2, 2025
.::: Drop All tables in database using Truncate & drop :::.
correlation with https://teguhth.blogspot.com/2025/10/script-drop-all-database-non-system-in.html
1. Drop table using script
2. Drop table using script and duration
3. script drop_table_indb.sh
[root@teguhth tbldrop]# pwd
/data/drop/tbldrop
[root@teguhth tbldrop]# cat drop_table_indb.sh
#!/bin/bash
# ===========================================================
# Script Name : drop_all_tbl_confirm.sh
# Tujuan : Menghapus semua tables dari 1 Database MariaDB dengan konfirmasi
# OS Diuji : CentOS 9
# Author : Teguh Triharto
# ===========================================================
# === Konfigurasi koneksi ===
USER="admin"
PASS="admin"
HOST="localhost"
DBX="secretdb"
PORT="3306"
Friday, November 28, 2025
.::: Simulation API PATCH Curl Using Phyton & MariaDB MySQL with HTTP Status Code 500, 400, 200, 404 :::.
continue from https://teguhth.blogspot.com/2025/11/simulation-api-post-using-phyton.html
1. script get sample
[root@teguhth api]# cat patch_api_buy.py
from flask import Flask, request, jsonify
import mysql.connector
app = Flask(__name__)
def get_db():
return mysql.connector.connect(
host="localhost",
user="admin",
password="admin",
database="hris"
)
.::: Simulation API PUT Curl Using Phyton & MariaDB MySQL with HTTP Status Code 500, 400, 200, 404 :::.
continue from https://teguhth.blogspot.com/2025/11/simulation-api-post-using-phyton.html
1. script get sample
[root@teguhth api]# cat /data/api/put_api_buy.py
from flask import Flask, request, jsonify
import mysql.connector
app = Flask(__name__)
def get_db():
return mysql.connector.connect(
host="localhost",
user="admin",
password="admin",
database="hris"
)
Thursday, November 27, 2025
.::: Simulation API GET Curl Using Phyton & MariaDB MySQL with HTTP Status Code 500, 400, 200, 404 :::.
continue from https://teguhth.blogspot.com/2025/11/simulation-api-post-using-phyton.html
1. script get sample
[root@teguhth api]# cat /data/api/get_api_buy.py
from flask import Flask, request, jsonify
import mysql.connector
app = Flask(__name__)
def get_db():
return mysql.connector.connect(
host="localhost",
user="admin",
password="admin",
database="hris"
)
@app.route('/get-buy-period', methods=['GET'])
def get_buy_period():
# Ambil data dari query string
year = request.args.get("year")
month = request.args.get("month")
.::: Simulation API POST Using Phyton & MariaDB MySQL with HTTP Status Code 500, 422, 200, 405 :::.
1. Install phyton
sudo dnf install python3 python3-pip -y
pip3 install flask mysql-connector-python
2. create database sample & insert data
CREATE DATABASE hris;
USE hris;
CREATE TABLE buy_period (
id INT AUTO_INCREMENT PRIMARY KEY,
period_year INT NOT NULL,
period_month INT NOT NULL,
start_date DATE NOT NULL,
end_date DATE NOT NULL
);
Wednesday, November 26, 2025
.::: Testing Script Lucee using Driver PostgreSQL, EDB, Oracle, MSSQL SQL Server Database :::.
1. run mssql
http://10.10.10.90:8888/belimssql.cfm
2. run edb
http://10.10.10.90:8888/beliedb.cfm
3. run oracle
http://10.10.10.90:8888/belioracle.cfm
Labels:
All Posts,
EDB,
Lucee,
Oracle Database,
postgres,
SQL Server
Tuesday, November 25, 2025
.::: Install Lucee 6 In Almalinux 9 Centos 9 :::.
1. Install httpd & enable
dnf install httpd -y
systemctl enable httpd
systemctl start httpd
2. download lucee wget https://cdn.lucee.org/lucee-6.2.3.35-linux-x64-installer.run
3. install lucee
/opt/lucee-6.2.3.35-linux-x64-installer.run
[root@teguhth nitip2]# /opt/lucee-6.2.3.35-linux-x64-installer.run
----------------------------------------------------------------------------
Welcome to the Lucee Installer.
Tomcat Version: 11.0.13
Bundled Java: 21.0.9+10-LTS
----------------------------------------------------------------------------
Please read the following License Agreement. You must accept the terms of this
agreement before continuing with the installation.
Monday, November 24, 2025
.::: Testing Script Lucee using Driver MariaDB & MySQL to access MariaDB Database :::.
1. create database & access
CREATE DATABASE testdb;
CREATE USER 'luceeuser'@'%' IDENTIFIED BY 'Password123!';
GRANT ALL PRIVILEGES ON testdb.* TO 'luceeuser'@'%';
FLUSH PRIVILEGES;
CREATE TABLE IF NOT EXISTS test_table (
id INT AUTO_INCREMENT PRIMARY KEY,
pesan VARCHAR(255)
);
INSERT INTO test_table (pesan) VALUES ('Halo dari Lucee di CentOS 9!');
SELECT * FROM test_table ORDER BY id DESC LIMIT 5;
Subscribe to:
Comments (Atom)
Popular Posts
-
Sertifikasi profesional, kadang hanya disebut dengan sertifikasi atau kualifikasi saja, adalah suatu penetapan yang diberikan oleh ...
-
SQL atau Structured Query Language) adalah sebuah bahasa yang digunakan untuk mengakses data dalam basis data relasional. Bahasa ini sec...
-
bagaimana cara mengubah hostid di Solaris The Hostid is a globally unique ID for a Sun Solaris Machine. Sometimes, you need to change t...
-
DNSPerf and ResPerf are free tools developed by Nominum that make it simple to gather accurate latency and throughput metrics for Domain ...
-
1. Check Host ID Solaris The Hostid is a globally unique ID for a Sun Solaris Machine. Sometimes, you need to change this hostid for ...






















.jpeg)
