迹忆客 EN >

所有文章

Back up the MySQL database to a file

发布时间:2025/04/26 作者:JIYIK 分类:MySQL

Backing up your database is a very important system administration task that should usually cron be run from a job at scheduled intervals. We will use mysqldump the dump utility that comes with mysql to dump the contents of the database to...

查看全文

How to export a CSV file from the MySQL command line

发布时间:2025/04/26 作者:JIYIK 分类:MySQL

How to export a CSV file from the MySQL command line

Comma-separated value files ( CSV ) are a way to transfer data between applications. Databases such as MySQL and spreadsheet software such as Excel both support importing and exporting via CSV , so we can use CSV files to exchange data betw...

查看全文

Restoring a MySQL database from a backup file

发布时间:2025/04/26 作者:JIYIK 分类:MySQL

There are many reasons why we would want to restore a database from a backup file... but we should also test it on a test server to make sure our database backup is working properly. The syntax is as follows: mysql -h hostname -u username -...

查看全文

How to run MySQL on Kubernetes using Oracle's Operator

发布时间:2025/04/26 作者:JIYIK 分类:MySQL

Kubernetes support for stateful applications has matured considerably over the past few years. It is now possible to co-locate your database within your cluster, allowing it to benefit from the same scalability as your other workloads. MySQ...

查看全文

How to back up a Kubernetes MySQL Operator cluster

发布时间:2025/04/26 作者:JIYIK 分类:MySQL

Oracle's MySQL Operator for Kubernetes is a convenient way to automatically configure a MySQL database within a cluster. One of the key features of the Operator is the integrated automatic backup support for increased resiliency. The backup...

查看全文

MySQL switch from utf8 to utf8mb4

发布时间:2025/04/26 作者:JIYIK 分类:MySQL

utf8mb4 Fortunately, MySQL 5.5.3 (released in early 2010) introduced a utf8mb4 new encoding called which maps to proper UTF-8 and thus fully supports Unicode, including astral symbols. Step 1: Create a backup Create a backup of all database...

查看全文

How to support full Unicode in MySQL database

发布时间:2025/04/26 作者:JIYIK 分类:MySQL

Are you using MySQL's utf8 character set in your database ? In this article, I'll explain why you should switch to utf8mb4 , and how to do it. UTF-8 The UTF-8 encoding can represent every symbol in the Unicode character set, ranging from U+...

查看全文

How to backup/export a single table from a MySQL database

发布时间:2025/04/26 作者:JIYIK 分类:MySQL

The other day I was testing a feature on my development box when I realized that my local data was indeed out of date and I needed some fresh data from production if I wanted to make any progress with my testing. The problem is that our mai...

查看全文

Switch MySQL to listen on TCP

发布时间:2025/04/26 作者:JIYIK 分类:MySQL

By default, MySQL only allows localhost connections from addresses. The configuration file is usually in /etc/mysql/my.cnf We need to bind-address comment out the line so it looks like this: - #bind-address = 127.0.0.1 + bind-address = 127....

查看全文

Speeding up our website using MySQL query cache

发布时间:2025/04/26 作者:JIYIK 分类:MySQL

One of the best ways to speed up your Web application is to enable query caching in your database, which caches frequently used SQL queries in memory so that the next page that makes the same request is almost instantaneous. What makes this...

查看全文

How to Change or Set MySQL Root Password

发布时间:2025/04/26 作者:JIYIK 分类:MySQL

For each database, we should set root the or sa password to something other than the default unless we want to get hacked. For mysql, the system administrator user is called root. We will use the mysql mysqladmin utility from the command li...

查看全文

How to enable MySQL slow query log

发布时间:2025/04/26 作者:JIYIK 分类:MySQL

Unusually slow queries are one of the most common MySQL performance issues. Queries that perform acceptably in development may falter under the pressure of a production workload. Large applications may run hundreds of unique database querie...

查看全文

How to See Which MySQL Tables Take Up the Most Space

发布时间:2025/04/26 作者:JIYIK 分类:MySQL

How to See Which MySQL Tables Take Up the Most Space

Database backups are one of those things that just keep getting bigger and bigger until they consume all the physical material in the world. Unlike reality TV, we can easily delete things from our databases to make the backups smaller. But...

查看全文

MySql: Grant root user permission to log in from any host

发布时间:2025/04/24 作者:JIYIK 分类:MySQL

请注意 , which is not very secure and should only be used on local development boxes where we don't want to set up personal permissions but still need to connect from other machines. To configure this feature, we need to % update the mys...

查看全文

扫一扫阅读全部技术教程

社交账号
  • https://www.github.com/onmpw
  • qq:1244347461

热门文章

热门标签

扫码一下
查看教程更方便