= 1024) {
$event.preventDefault();
const i = slugs.indexOf($wire.preview);
const next = $event.key === 'ArrowDown' ? Math.min(i + 1, slugs.length - 1) : Math.max(i - 1, 0);
if (next !== i && slugs[next]) $wire.openPreview(slugs[next]);
}
">
Installation Guides
11
Knowledge Base
308 copy-ready commands with fill-in variables, plus step-by-step installation guides.
/
Categories
25 results
= 1024) { $event.preventDefault(); $wire.openPreview('mariadb-scheduled-backup-cron') }"
class="absolute inset-0 z-0 rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500">
= 1024) { $event.preventDefault(); $wire.openPreviewWithPicker('mariadb-scheduled-backup-cron') }"
class="absolute top-2 end-2 z-10 p-1.5 rounded-md transition text-gray-300 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 hover:text-amber-400"
title="Save to collection">
MariaDB & MySQL
New
Nightly MariaDB Backup with Rotation (cron)
# crontab -e ثم أضف السطر:
#mariadb
#mysql
2 views
0 copies
= 1024) { $event.preventDefault(); $wire.openPreview('mariadb-create-table') }"
class="absolute inset-0 z-0 rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500">
= 1024) { $event.preventDefault(); $wire.openPreviewWithPicker('mariadb-create-table') }"
class="absolute top-2 end-2 z-10 p-1.5 rounded-md transition text-gray-300 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 hover:text-amber-400"
title="Save to collection">
MariaDB & MySQL
Create a Table
CREATE TABLE IF NOT EXISTS {{table_name}} (
#mariadb
#mysql
3 views
0 copies
= 1024) { $event.preventDefault(); $wire.openPreview('mariadb-add-column') }"
class="absolute inset-0 z-0 rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500">
= 1024) { $event.preventDefault(); $wire.openPreviewWithPicker('mariadb-add-column') }"
class="absolute top-2 end-2 z-10 p-1.5 rounded-md transition text-gray-300 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 hover:text-amber-400"
title="Save to collection">
MariaDB & MySQL
Add a Column to Existing Table
ALTER TABLE {{table_name}}
#mariadb
#mysql
3 views
0 copies
= 1024) { $event.preventDefault(); $wire.openPreview('mariadb-add-index') }"
class="absolute inset-0 z-0 rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500">
= 1024) { $event.preventDefault(); $wire.openPreviewWithPicker('mariadb-add-index') }"
class="absolute top-2 end-2 z-10 p-1.5 rounded-md transition text-gray-300 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 hover:text-amber-400"
title="Save to collection">
MariaDB & MySQL
Add an Index to a Column
ALTER TABLE {{table_name}}
#mariadb
#mysql
5 views
0 copies
= 1024) { $event.preventDefault(); $wire.openPreview('mariadb-show-full-processlist') }"
class="absolute inset-0 z-0 rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500">
= 1024) { $event.preventDefault(); $wire.openPreviewWithPicker('mariadb-show-full-processlist') }"
class="absolute top-2 end-2 z-10 p-1.5 rounded-md transition text-gray-300 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 hover:text-amber-400"
title="Save to collection">
MariaDB & MySQL
Show Running Queries
SHOW FULL PROCESSLIST;
#mariadb
#mysql
4 views
0 copies
= 1024) { $event.preventDefault(); $wire.openPreview('mariadb-explain-query') }"
class="absolute inset-0 z-0 rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500">
= 1024) { $event.preventDefault(); $wire.openPreviewWithPicker('mariadb-explain-query') }"
class="absolute top-2 end-2 z-10 p-1.5 rounded-md transition text-gray-300 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 hover:text-amber-400"
title="Save to collection">
MariaDB & MySQL
Explain a Query Execution Plan
EXPLAIN SELECT * FROM {{table}} WHERE {{condition}};
#mariadb
#mysql
4 views
2 copies
= 1024) { $event.preventDefault(); $wire.openPreview('mariadb-truncate-table') }"
class="absolute inset-0 z-0 rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500">
= 1024) { $event.preventDefault(); $wire.openPreviewWithPicker('mariadb-truncate-table') }"
class="absolute top-2 end-2 z-10 p-1.5 rounded-md transition text-gray-300 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 hover:text-amber-400"
title="Save to collection">
MariaDB & MySQL
Truncate (Empty) a Table
TRUNCATE TABLE {{table_name}};
#mariadb
#mysql
3 views
0 copies
= 1024) { $event.preventDefault(); $wire.openPreview('mariadb-check-table-size') }"
class="absolute inset-0 z-0 rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500">
= 1024) { $event.preventDefault(); $wire.openPreviewWithPicker('mariadb-check-table-size') }"
class="absolute top-2 end-2 z-10 p-1.5 rounded-md transition text-gray-300 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 hover:text-amber-400"
title="Save to collection">
MariaDB & MySQL
Check Table Sizes in Database
SELECT table_name,
#mariadb
#mysql
3 views
0 copies
= 1024) { $event.preventDefault(); $wire.openPreview('mariadb-grant-remote') }"
class="absolute inset-0 z-0 rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500">
= 1024) { $event.preventDefault(); $wire.openPreviewWithPicker('mariadb-grant-remote') }"
class="absolute top-2 end-2 z-10 p-1.5 rounded-md transition text-gray-300 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 hover:text-amber-400"
title="Save to collection">
MariaDB & MySQL
Grant Remote Access to User
GRANT ALL PRIVILEGES ON {{database}}.* TO '{{username}}'@'{{host}}';
#mariadb
#mysql
3 views
0 copies
= 1024) { $event.preventDefault(); $wire.openPreview('mariadb-revoke-user') }"
class="absolute inset-0 z-0 rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500">
= 1024) { $event.preventDefault(); $wire.openPreviewWithPicker('mariadb-revoke-user') }"
class="absolute top-2 end-2 z-10 p-1.5 rounded-md transition text-gray-300 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 hover:text-amber-400"
title="Save to collection">
MariaDB & MySQL
Revoke All Privileges from User
REVOKE ALL PRIVILEGES ON *.* FROM '{{username}}'@'{{host}}';
#mariadb
#mysql
3 views
0 copies
= 1024) { $event.preventDefault(); $wire.openPreview('mariadb-import-sql') }"
class="absolute inset-0 z-0 rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500">
= 1024) { $event.preventDefault(); $wire.openPreviewWithPicker('mariadb-import-sql') }"
class="absolute top-2 end-2 z-10 p-1.5 rounded-md transition text-gray-300 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 hover:text-amber-400"
title="Save to collection">
MariaDB & MySQL
Import SQL File into Database
mysql -u {{username}} -p {{database}} < {{sql_file}}
#mariadb
#mysql
3 views
0 copies
= 1024) { $event.preventDefault(); $wire.openPreview('mariadb-count-rows') }"
class="absolute inset-0 z-0 rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500">
= 1024) { $event.preventDefault(); $wire.openPreviewWithPicker('mariadb-count-rows') }"
class="absolute top-2 end-2 z-10 p-1.5 rounded-md transition text-gray-300 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 hover:text-amber-400"
title="Save to collection">
MariaDB & MySQL
Count Rows with Condition
SELECT COUNT(*) AS total
#mariadb
#mysql
3 views
0 copies
= 1024) { $event.preventDefault(); $wire.openPreview('mariadb-join-query') }"
class="absolute inset-0 z-0 rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500">
= 1024) { $event.preventDefault(); $wire.openPreviewWithPicker('mariadb-join-query') }"
class="absolute top-2 end-2 z-10 p-1.5 rounded-md transition text-gray-300 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 hover:text-amber-400"
title="Save to collection">
MariaDB & MySQL
JOIN Two Tables
SELECT a.{{a_columns}}, b.{{b_columns}}
#mariadb
#mysql
3 views
0 copies
= 1024) { $event.preventDefault(); $wire.openPreview('mariadb-update-rows') }"
class="absolute inset-0 z-0 rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500">
= 1024) { $event.preventDefault(); $wire.openPreviewWithPicker('mariadb-update-rows') }"
class="absolute top-2 end-2 z-10 p-1.5 rounded-md transition text-gray-300 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 hover:text-amber-400"
title="Save to collection">
MariaDB & MySQL
Update Rows with Condition
UPDATE {{table}}
#mariadb
#mysql
3 views
0 copies
= 1024) { $event.preventDefault(); $wire.openPreview('mariadb-delete-rows') }"
class="absolute inset-0 z-0 rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500">
= 1024) { $event.preventDefault(); $wire.openPreviewWithPicker('mariadb-delete-rows') }"
class="absolute top-2 end-2 z-10 p-1.5 rounded-md transition text-gray-300 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 hover:text-amber-400"
title="Save to collection">
MariaDB & MySQL
Delete Rows with Condition
DELETE FROM {{table}}
#mariadb
#mysql
5 views
0 copies
= 1024) { $event.preventDefault(); $wire.openPreview('install-mariadb') }"
class="absolute inset-0 z-0 rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500">
= 1024) { $event.preventDefault(); $wire.openPreviewWithPicker('install-mariadb') }"
class="absolute top-2 end-2 z-10 p-1.5 rounded-md transition text-gray-300 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 hover:text-amber-400"
title="Save to collection">
MariaDB & MySQL
Install MariaDB server
sudo apt install -y mariadb-server && sudo systemctl enable mariadb && sudo syst...
#mariadb
#mysql
3 views
0 copies
= 1024) { $event.preventDefault(); $wire.openPreview('mariadb-secure-installation') }"
class="absolute inset-0 z-0 rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500">
= 1024) { $event.preventDefault(); $wire.openPreviewWithPicker('mariadb-secure-installation') }"
class="absolute top-2 end-2 z-10 p-1.5 rounded-md transition text-gray-300 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 hover:text-amber-400"
title="Save to collection">
MariaDB & MySQL
MariaDB secure installation
sudo mysql_secure_installation
#mariadb
#security
3 views
0 copies
= 1024) { $event.preventDefault(); $wire.openPreview('create-mariadb-database-and-user') }"
class="absolute inset-0 z-0 rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500">
= 1024) { $event.preventDefault(); $wire.openPreviewWithPicker('create-mariadb-database-and-user') }"
class="absolute top-2 end-2 z-10 p-1.5 rounded-md transition text-gray-300 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 hover:text-amber-400"
title="Save to collection">
MariaDB & MySQL
Create MariaDB database, user, and grants
CREATE DATABASE {{db_name}} CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
#mariadb
#database
13 views
2 copies
= 1024) { $event.preventDefault(); $wire.openPreview('mariadb-backup-database') }"
class="absolute inset-0 z-0 rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500">
= 1024) { $event.preventDefault(); $wire.openPreviewWithPicker('mariadb-backup-database') }"
class="absolute top-2 end-2 z-10 p-1.5 rounded-md transition text-gray-300 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 hover:text-amber-400"
title="Save to collection">
MariaDB & MySQL
Backup MariaDB database to .sql file
sudo mysqldump -u root -p --single-transaction --routines --triggers {{db_name}}...
#mariadb
#backup
3 views
0 copies
= 1024) { $event.preventDefault(); $wire.openPreview('mariadb-restore-database') }"
class="absolute inset-0 z-0 rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500">
= 1024) { $event.preventDefault(); $wire.openPreviewWithPicker('mariadb-restore-database') }"
class="absolute top-2 end-2 z-10 p-1.5 rounded-md transition text-gray-300 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 hover:text-amber-400"
title="Save to collection">
MariaDB & MySQL
Restore MariaDB database from .sql file
sudo mysql -u root -p {{db_name}} < {{sql_file}}
#mariadb
#restore
3 views
0 copies
= 1024) { $event.preventDefault(); $wire.openPreview('mariadb-show-users') }"
class="absolute inset-0 z-0 rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500">
= 1024) { $event.preventDefault(); $wire.openPreviewWithPicker('mariadb-show-users') }"
class="absolute top-2 end-2 z-10 p-1.5 rounded-md transition text-gray-300 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 hover:text-amber-400"
title="Save to collection">
MariaDB & MySQL
Show all MariaDB users and hosts
SELECT User, Host, plugin FROM mysql.user;
#mariadb
#users
4 views
0 copies
= 1024) { $event.preventDefault(); $wire.openPreview('mariadb-change-user-password') }"
class="absolute inset-0 z-0 rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500">
= 1024) { $event.preventDefault(); $wire.openPreviewWithPicker('mariadb-change-user-password') }"
class="absolute top-2 end-2 z-10 p-1.5 rounded-md transition text-gray-300 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 hover:text-amber-400"
title="Save to collection">
MariaDB & MySQL
Change MariaDB user password
ALTER USER '{{db_user}}'@'{{db_host}}' IDENTIFIED BY '{{new_password}}';
#mariadb
#password
3 views
0 copies
= 1024) { $event.preventDefault(); $wire.openPreview('mariadb-dump-all') }"
class="absolute inset-0 z-0 rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500">
= 1024) { $event.preventDefault(); $wire.openPreviewWithPicker('mariadb-dump-all') }"
class="absolute top-2 end-2 z-10 p-1.5 rounded-md transition text-gray-300 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 hover:text-amber-400"
title="Save to collection">
MariaDB & MySQL
Dump All MariaDB Databases
mysqldump -u root -p --all-databases | gzip > /backups/all-dbs-$(date +%Y%m%d).s...
#mariadb
#mysql
4 views
0 copies
= 1024) { $event.preventDefault(); $wire.openPreview('mariadb-enable-slow-log') }"
class="absolute inset-0 z-0 rounded-xl focus:outline-none focus-visible:ring-2 focus-visible:ring-blue-500">
= 1024) { $event.preventDefault(); $wire.openPreviewWithPicker('mariadb-enable-slow-log') }"
class="absolute top-2 end-2 z-10 p-1.5 rounded-md transition text-gray-300 opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 hover:text-amber-400"
title="Save to collection">
MariaDB & MySQL
Enable MariaDB Slow Query Log
SET GLOBAL slow_query_log = 'ON';
#mariadb
#mysql
3 views
0 copies