Install and Configure Mariadb - Mysql On Archlinux
Install and Configure Mariadb - Mysql On Archlinux
GeekPills
Technical tutorials …
Install and configure Mariadb/MySQL on Archlinux What are you looking for ..?
Mariadb is officially Database implementation of MySQL as many other Linux Search … Search
distributions. Today we will see HowTo Install and configure Mariadb Server on
archlinux and see how we could simple Administrative task on same.
Geekpills facebook page
SetUP
For our setup we are using latest archlinux as of now Nov 2017. Geekpills
204 likes
Installation
Recent Posts
[root@archlinux ~]# pacman -S mariadb
resolving dependencies...
looking for conflicting packages... Linux how to determine the file system type
Packages (8) boost-libs-1.65.1-2 jemalloc-1:5.0.1-3 libevent-2.1.8-1 libmariadbclient-10.1.29-1 libxml2-2.9.7+4+g72182550-2 lzo- Python: Dictionary
2.10-1 mariadb-clients-10.1.29-1 mariadb-10.1.29-1
Total Download Size: 36.65 MiB How To Use grep Command In Linux / UNIX
Total Installed Size: 254.79 MiB
Sed : Some Examples
:: Proceed with installation? [Y/n] y
:: Retrieving packages... How to Limit Rsync speed through option –bwlimit
lzo-2.10-1-x86_64 82.1 KiB 73.3K/s 00:01 [###########] 100%
libevent-2.1.8-1-x86_64 250.2 KiB 112K/s 00:02 [###########] 100%
libmariadbclient-10.1.29-1-x86_64 4.5 MiB 200K/s 00:23 [###########] 100% Linux ip Command Examples
jemalloc-1:5.0.1-3-x86_64 274.5 KiB 241K/s 00:01 [###########] 100%
mariadb-clients-10.1.29-1-x86_64 1464.6 KiB 215K/s 00:07 [###########] 100% How to run multiple instances of MySQL through
libxml2-2.9.7+4+g72182550-2-x86_64 1265.4 KiB 169K/s 00:07 [###########] 100%
boost-libs-1.65.1-2-x86_64 2.3 MiB 174K/s 00:14 [###########] 100% mysqld_multi
mariadb-10.1.29-1-x86_64 26.5 MiB 235K/s 01:55 [###########] 100%
(8/8) checking keys in keyring [###########] 100% How to stop cluster resource through pcs command
(8/8) checking package integrity [###########] 100%
(8/8) loading package files [###########] 100%
(8/8) checking for file conflicts [###########] 100% Partition Space Under Another Mountpoint
(8/8) checking available disk space [###########] 100%
:: Processing package changes... Awk: How Substr Works
(1/8) installing lzo [###########] 100%
(2/8) installing libmariadbclient [###########] 100% Linux Cluster: Prevent Resources from Moving after
(3/8) installing jemalloc [###########] 100%
Optional dependencies for jemalloc Recovery
perl: for jeprof [installed]
(4/8) installing mariadb-clients [###########] 100% Docker search and Download
(5/8) installing libxml2 [###########] 100%
(6/8) installing boost-libs [###########] 100%
Optional dependencies for boost-libs Perl: Loops
openmpi: for mpi support
(7/8) installing libevent [###########] 100% HowTo Add Memory in KVM Virtual Machine
Optional dependencies for libevent
python2: to use event_rpcgen.py Python: Functions
(8/8) installing mariadb [###########] 100%
:: You need to initialize the MariaDB data directory prior to starting
the service. This can be done with mysql_install_db command, e.g.: Python: Tuples
mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
Optional dependencies for mariadb Increase Disk Partition , Raid Size and LV in Linux
galera: for MariaDB cluster with Galera WSREP
perl-dbd-mysql: for mysqlhotcopy, mysql_convert_table_format and mysql_setpermission
:: Running post-transaction hooks... Python: List
(1/3) Updating system user accounts...
(2/3) Creating temporary files... Python : Strings
(3/3) Arming ConditionNeedsUpdate...
Python : Numbers
NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDB
SERVERS IN PRODUCTION USE! PLEASE READ EACH STEP CAREFULLY!
In order to log into MariaDB to secure it, we'll need the current
password for the root user. If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.
Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation. CATEGORIES
Set root password? [Y/n] y
New password:
Re-enter new password: Automation (35)
Password updated successfully!
Reloading privilege tables.. Bash Scripting (15)
... Success!
Perl (8)
Python (12)
By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for Cluster (5)
them. This is intended only for testing, and to make the installation
go a bit smoother. You should remove them before moving into a Configuration Management (1)
production environment.
Puppet (1)
Remove anonymous users? [Y/n] y
... Success! Database (12)
Normally, root should only be allowed to connect from 'localhost'. This MongoDB (1)
ensures that someone cannot guess at the root password from the network.
MySQL (8)
Disallow root login remotely? [Y/n] y
... Success! Oracle (3)
By default, MariaDB comes with a database named 'test' that anyone can Linux_page (3)
access. This is also intended only for testing, and should be removed
before moving into a production environment. Motoring (5)
Remove test database and access to it? [Y/n] y Nagios (1)
- Dropping test database...
... Success! Zabbix (4)
- Removing privileges on test database...
... Success! Operating System (276)
Reloading the privilege tables will ensure that all changes made so far Linux (276)
will take effect immediately.
Virtulization (26)
Reload privilege tables now? [Y/n] y Docker (2)
... Success!
KVM (3)
Cleaning up...
KVM/libvirt (2)
All done! If you've completed all of the above steps, your MariaDB
installation should now be secure. Wordpress (2)
Thanks for using MariaDB!
So now Mariadb is installed and up and running on Archlinux machine as required . Let’s make it available on boot time.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
Share
Like this:
No Comments Yet
Leave a Reply
Your email address will not be published. Required fields are marked *
Name *
Email *
Website
Post Comment
« Managing Users and Group part2 Install Python 3 and Set Up a Local Programming Environment on CentOS
7»