Birmingham mumbai


Managing MariaDB databases



Download 15,21 Mb.
Pdf ko'rish
bet435/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   431   432   433   434   435   436   437   438   ...   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)

Managing MariaDB databases
Now that our MariaDB
 server is up and running, we can finally look into managing 
it. In this section, I'll demonstrate how to connect to a database server using the 
mariadb
 command, which will allow us to create databases, remove (drop) them, and 
also manage users and permissions.
To begin, we'll need to create an administrative user for MariaDB. The 
root
 account 
already exists as the default administrative user, but it's not a good idea to allow 
others to use that account. Instead, it makes more sense to create an administrative 
account separate from 
root
 for managing our databases. Therefore, we'll begin our 
discussion on managing databases with user management. The users we'll manage 
within MariaDB are specific to MariaDB; these are separate from the user accounts 
on the actual system.
To manage and interact with databases, we'll need to enter the MariaDB shell, and 
the same goes when it comes to creating database users. Right now, since we only 
have the 
root
 account, we'll need to access the current MariaDB implementation 
as 
root
 in order to set up our administrative user. If you've set up standard 
authentication, as we discussed earlier in this chapter, you can access the prompt 
using the standard means:
mariadb -u root -p
If you haven't switched the 
root
 account to standard authentication, you can simply 
access 
mariadb
 with 
sudo
:
sudo mariadb


Chapter 13

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   431   432   433   434   435   436   437   438   ...   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