Results for “MySQL

DataX MySQL to ClickHouse Data Sync Example

DataX is an excellent open-source tool for syncing data between various databases. Today, we’ll look at how to write a JSON configuration for syncing data from MySQL to ClickHouse.
Below, we use the test_c table in the ys database as an example: …

MySQL and MariaDB Version Compatibility

MariaDB is a great open-source MySQL fork alternative (alongside others like Percona MySQL), but before switching from MySQL to MariaDB, you really need to understand the basic version correspondence between them. Otherwise, you’re likely to run into many …

MySQL Benchmarking Tool Sysbench

yum -y install sysbench

echo "* hard nofile 65535
* soft nofile 65535
">>/etc/security/limits.conf

ulimit -a

core file size (blocks, -c) 0
data seg size (kbytes, -d) unlim …

How to Reset a Forgotten MySQL Password

Modify the configuration file and add skip_grant_tables. Edit the configuration file:
vi /etc/my.cnf
Add the following under the [mysqld] section of the configuration file:
skip_grant_tables

Restart MySQL:
service mysqld restart
Access the database without a password and set a new one. Enter without a password:
mysql …

MySQL Error Fix: Your Password Has Expired

Error message as follows:
Error when connecting to server: Your password has expired. To log in you must change it using a client that supports expired passwords.

Log into mysql, set a new password, and set it to never expire:
my …

MySQL Performance Testing with mysqlslap

MySQL comes with a built-in stress testing tool called mysqlslap.

Here is an example of testing with 500 concurrent connections, running 10 iterations:
mysqlslap -a -c 500 -i 10 -uroot -p123456
The results are as follows: