max_allowed_packet is the maximum size of data that can be transferred in one request. Increase the value when the “Packet too large” error occurs so that the connection is not interrupted.
Continue reading “Changing max_allowed_packet in MySQL”
The default value for MySQL client is 16 MB, for MySQL server 64 MB.
In this article I will describe the process of moving the MySQL data directory to a separate location, namely on a level 10 raid with 4 disks, this will increase performance.
Continue reading “Moving the MySQL data directory to a new location”
Once increasing the size of “innodb_log_file_size”, I noticed an error in the /var/log/mysql/error.log file:
Continue reading “Solution “InnoDB Error ib_logfile0 is of different size””
Since InnoDB is more reliable for storing important data and is more efficient with frequent write requests, I will convert MyISAM tables to InnoDB, in old databases, in one of the companies.
Continue reading “How to convert MySQL tables from MyISAM to InnoDB”
MySQL error: Can’t create table ‘tablename’ (errno: 150) can occur when you, for example, upload a backup and MySQL is powered to create table 1 which refers to table 2, which essentially does not exist yet. You can solve by inserting the lines at the beginning in the backup:
Continue reading “MySQL Error Solution: Can’t create table ‘tablename’ (errno: 150)”
Once I needed to change some data in a MySQL database, I decided to use phpMyAdmin and ran into a message:
Continue reading “Solution to phpMyAdmin error “This table does not contain a unique column””
You can install the MySQL server and client in Ubuntu/Debian like this:
Continue reading “Installing and configuring MySQL server on Ubuntu”
Once I turned on the logs of slow queries and noticed that the time is being written with the wrong time zone.
Continue reading “MySQL. Time mismatch in error logs and slow queries logs”
I will give an example of changing join_buffer_size in MySQL.
Continue reading “How to change join_buffer_size in MySQL”
join_buffer_size determines the size of the buffer for index scanning and joins without indexes. I recommend adding indexes or slightly increasing join_buffer_size (but in this case a full table scan will be performed).