Knowledgebase

Databases

Errors and Fixes

Articles

How to create a MySQL user and Grant permissions through command line ? To create MySQL user you should have root access. First of all, you have to log in to MySQL server through a command line. # mysql -u root -p ****** Here, -u option... How to enable Redis Database Backup in Memory using BGSAVE and SAVE There is a possibility that redis-server might crash or memory problems and the user can lose the data that he is working. To overcome this issue Redis Developer added... How to fix Table eximstats.sends is marked as crashed and should be repaired? First, you will need to login to shell as the root user. Run the following: mysqlcheck --repair eximstats If you receive, the below mentioned result. Once running... How to fix lveinfo database error? Updated 28 September 2026 CloudLinux OS with lve-stats 2 On CloudLinux servers, the lveinfo command and the statistics in CloudLinux Manager read from the lve-stats database. If they show nothing or print a database error... How to get a backup of MySQL database through phpMyAdmin? Here are the steps to take backup of your MySQL database through PHPMyAdmin:1. First login to your cPanel.2. Click on phpMyAdmin, under databases panel.3. In the... How to get mysql.sock file if it is missing? MySql.sock file is mostly available in folder “/mysql/tmp/”. If you mistakenly deleted the MySql.sock file then this tutorial is very helpful for you. 1. Before... How to optimize MySQL Database? Server performance is the basic thing behind the stable application. Performance leads to create profit along with productivity. Therefore, it is essential to tune... How to recover or recreate MYI file of a Table in MySQL DB? MySQL relational database management system prior versions to 5.5 were using MyISAM as a default storage system for databases. MyISAM is old but it has many useful... How to separate MySQL Slow Log Using Logrotate in Ubuntu? Updated 11 October 2026 MariaDB 10.11 on Ubuntu 24.04 / Debian 12 (AlmaLinux/Rocky noted) The slow query log records queries that take longer than a set time, which helps you find what slows a site down. Rotate it so it does not fill the disk. These steps... How to show a list of all users in MySQL? All commands will be executed inside the MySQL shell as a root user.   To access the MySQL shell type the following command and enter your MySQL root user password... List MySQL databases using command line Updated 13 November 2026 MariaDB 10.6 to 11.4 and MySQL 8, command line Run SHOW DATABASES; inside the MySQL or MariaDB client to list every database the connected user can see. Open the client and list databases mysql -u root -p On a... MySQL Error 1064: What It Means and Common Causes What is MySQL Error 1064?This is exactly syntax error and appears because of few specific reasons.  When we give a wrong command, MYSQL will not understand. The... MySQL table repair error: Cannot create new tempfile Updated 11 October 2026 MariaDB 10.6 to 11.4 and MySQL 8 "Can't create new tempfile" during a repair usually means a temporary repair file is left over from an earlier attempt, or there is not enough free disk space. Fix... MySQL tweaking: best practices and tips for SysAdmin Updated 11 October 2026 Ubuntu 24.04, Debian 12, AlmaLinux 9 and Rocky Linux 9 (MariaDB 10.11 / MySQL 8) Good MariaDB/MySQL performance comes mostly from a few settings, efficient queries and enough RAM. These tips apply to MariaDB 10.11 and MySQL 8.0/8.4 on Ubuntu 24.04,... OpenBSD install MariaDB database server MariaDB is a drop in replacement for Oracle MySQL servers. MariaDB is a multithreaded SQL database with a command syntax very similar to mSQL. This page shows how to... SQL Commands with Examples: SELECT, INSERT, UPDATE, DELETE, JOIN and More (MySQL and MariaDB) MySQL 8.4 and MariaDB 11.8 (most statements are standard SQL); every example was run on MariaDB 11.8.9 and MySQL 8.4.11 SQL commands fall into four groups: commands that define the structure (DDL: CREATE, ALTER, DROP, TRUNCATE), commands that read and change data (DML: SELECT, INSERT,... SQL Server Commands: sqlcmd and T-SQL Basics with Examples (MS SQL) Microsoft SQL Server 2017 to 2025 on Windows and Linux; sqlcmd (Go) 1.10.0 tested in Docker; T-SQL statements from Micro Microsoft SQL Server (MS SQL) uses its own dialect of SQL called Transact-SQL (T-SQL). You type T-SQL in SQL Server Management Studio (SSMS) or on the command line... SQL Server Service Is Not Starting: Reasons and Fixes Updated 22 October 2026 When the SQL Server (MSSQLSERVER) service will not start, Windows usually shows one of these messages: "Windows could not start the SQL Server (MSSQLSERVER) on Local... Setting up DirectAdmin with an SSL certificate Method 1:   You can switch DirectAdmin to use SSL instead of plain text. -> https instead of http on port 2222. Note that this is for the DirectAdmin connection... Steps to manage MySQL Database Backup You can easily take Backup of Database by using the following Command Line : For Single Database : mysqldump db_name > db_name.sql For more than One Database :... Steps to optimize Mysql database through PhpMyAdmin Overview of optimisation:There are various factors which run the database under the control of tables, queries and configurations. The result of software can be... Tune MySQL to Improve the Performance of CPU To Improve the Performance do the following:1. Reduce the Workload:The best way to realize how the server spends the time is by reducing the workload of the server. By... Use PHP to make a MySQL Connection There are various ways to make a MySQL Connection using PHP and each of them is described in the following text.To connect MySQL Using MySQL Improved (mysqli)... What is unknown collation utf8mb4_unicode_520_ci and how to solve it? An error message describes a problem that stops a user or system from completing a task.1273 - Unknown Collation ‘utf8mb4_unicode-520-ci’ is an error message that you... What to do if MySQL database displays 0 MB size? Updated 28 September 2026 cPanel & WHM 138 (WHM, root access) If cPanel shows 0 MB for your MySQL databases, the server is not including database sizes in its disk usage calculations, or the figures have not been updated yet. For...