Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet432/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   428   429   430   431   432   433   434   435   ...   482
Bog'liq
Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)

[
 332 
]
You'll also see the following directories:
conf.d 
mariadb.conf.d 
The configuration file that MariaDB reads on startup is the 
/etc/mysql/mariadb.cnf
 
file. This is where you'll begin perusing when you want to configure the daemon, 
but we'll get to that soon. The 
/etc/mysql/debian-start
 file is actually a script that 
sets default values for MariaDB when it starts, such as setting some environment 
variables. It also defines a task that is executed if the 
mariadb
 process dies or exits, 
and allows it to check for crashed tables.
The 
debian-start
 script also loads the 
/etc/mysql/debian.cnf
 file, which sets some 
client settings for the 
mariadb
 daemon. Here's a list of values from that file:
[client] 
host     = localhost 
user     = root 
password =  
socket   = /var/run/mysqld/mysqld.sock 
[mysql_upgrade] 
host     = localhost 
user     = root 
password =  
socket   = /var/run/mysqld/mysqld.sock 
basedir  = /usr 
The defaults for these values
 are fine and there's rarely a reason to change them. 
Essentially, the file sets the default user, host, and socket location. If you've used 
MySQL before on other platforms, you may have seen many of those settings in 
the 
/etc/my.cnf
 file, which is typically the standard file for the 
mariadb
 daemon. 
With MariaDB on Ubuntu Server, you can see that the default layout of the files was 
changed considerably.
The 
/etc/mysql/mariadb.cnf
 file sets the global defaults for MariaDB. However, 
in Ubuntu's implementation, this default file just includes configuration files from 
the 
/etc/mysql/conf.d
 and 
/etc/mysql/mariadb.conf.d
 directories. Within those 
directories, there are additional files ending with the 
.cnf
 extension. Many of 
these files contain default configuration values that would normally be found in a 
single file, but Ubuntu's implementation modularizes these settings into separate 
files instead. For our purposes in this book, we'll be editing the 
/etc/mysql/
conf.d/mysql.cnf
 file when it is time to set up a relationship between primary and 
secondary servers.


Chapter 13

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   428   429   430   431   432   433   434   435   ...   482




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish