Get the App
SLTechnology News&Howtos  ›  Database  › 

How to create a MySql transaction

Shulou Source: shulou.com Published: 2022-05-31 12:44:44 10月30日 Update

This article focuses on "how to create MySql transactions". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to create MySql transactions.

# in this article, the installation directory of my computer's MYSQL database is "d:webservermysql"

# my database directory is "f:sun datamysql data"

# the IP address of my computer is 192.168.0.2. If it is a public network IP, it is the same.

# [mysqld] part is the environment configuration part of mysql

# [WinMySQLadmin] is the startup part of the database

The part between [code] and [/ code] for configuring environment variables and transaction databases

# the part that uses "#" in this article is the comment line body part with "#" is optional and can be opened

[mysqld]

Basedir=d:/webserver/mysql

# bind-address=192.168.0.2

Datadir=F:/Sun Date/mysql data/

# language=d:/webserver/mysql/share/your language directory

# slow query log#=

# tmpdir#=

# port=3306

[WinMySQLadmin]

Server=d:/webserver/mysql/bin/mysqld-max-nt.exe

User= user name to start the database

Password for password= to start the database

[code]

Innodb_data_file_path = ibdata1:1000M;ibdata2:1000M

Innodb_data_home_dir = d:webservermysqlibdata

Set-variable = innodb_mirrored_log_groups=1

Innodb_log_group_home_dir = d:webservermysqliblogs

Innodb_flush_log_at_trx_commit=1

Innodb_log_arch_dir = d:webservermysqliblogs

Innodb_log_archive=0

Set-variable = innodb_buffer_pool_size=80M

Set-variable = innodb_additional_mem_pool_size=10M

Set-variable = innodb_file_io_threads=4

Set-variable = innodb_lock_wait_timeout=50

Set-variable = innodb_log_files_in_group=3

Set-variable = innodb_log_file_size=30M

Set-variable = innodb_log_buffer_size=8M

# set-variable = key_buffer=16M

[/ code]

At this point, I believe you have a deeper understanding of "how to create MySql transactions". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Tags: Data database transaction processing part content environment directory computer learning configuration practical deeper inter interest variable address practicality actual password Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Apple MySQL Microsoft Redmi Huawei