Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to create a MySql transaction

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report