manjaro安装MySQL(mariadb)

博客提及在Manjaro系统中,MySQL Workbench出现Could not store password: The name org.freedesktop.secrets was not provided by any.service files的错误,还补充了开机自启相关内容。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

sudo pacman -S mariadb
resolving dependencies...
looking for conflicting packages...

Packages (3) mariadb-clients-10.3.14-1  mariadb-libs-10.3.14-1
             mariadb-10.3.14-1

Total Installed Size:  273.14 MiB

:: Proceed with installation? [Y/n] y
(3/3) checking keys in keyring                     [###################] 100%
(3/3) checking package integrity                   [###################] 100%
(3/3) loading package files                        [###################] 100%
(3/3) checking for file conflicts                  [###################] 100%
(3/3) checking available disk space                [###################] 100%
:: Processing package changes...
(1/3) installing mariadb-libs                      [###################] 100%
(2/3) installing mariadb-clients                   [###################] 100%
(3/3) 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.:
   mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
Optional dependencies for mariadb
    galera: for MariaDB cluster with Galera WSREP
    perl-dbd-mysql: for mysqlhotcopy, mysql_convert_table_format and
    mysql_setpermission
:: Running post-transaction hooks...
(1/4) Reloading system manager configuration...
(2/4) Creating system user accounts...
(3/4) Creating temporary files...
(4/4) Arming ConditionNeedsUpdate...
sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
Installing MariaDB/MySQL system tables in '/var/lib/mysql' ...
OK

To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system


PLEASE REMEMBER TO SET A PASSWORD FOR THE MariaDB root USER !
To do so, start the server, then issue the following commands:

'/usr/bin/mysqladmin' -u root password 'new-password'
'/usr/bin/mysqladmin' -u root -h manjaro password 'new-password'

Alternatively you can run:
'/usr/bin/mysql_secure_installation'

which will also give you the option of removing the test
databases and anonymous user created by default.  This is
strongly recommended for production servers.

See the MariaDB Knowledgebase at http://mariadb.com/kb or the
MySQL manual for more instructions.

You can start the MariaDB daemon with:
cd '/usr' ; /usr/bin/mysqld_safe --datadir='/var/lib/mysql'

You can test the MariaDB daemon with mysql-test-run.pl
cd '/usr/mysql-test' ; perl mysql-test-run.pl

Please report any problems at http://mariadb.org/jira

The latest information about MariaDB is available at http://mariadb.org/.
You can find additional information about the MySQL part at:
http://dev.mysql.com
Consider joining MariaDB's strong and vibrant community:
https://mariadb.org/get-involved/
$ systemctl start mariadb
$ mysqladmin -u root password '123456'

补充:

  1. 开机自启
systemctl enable mariadb
# 与disable相对

问题1:
MySQL Workbench在manjaro中出现 Could not store password: The name org.freedesktop.secrets was not provided by any.service files的错误

解决:安装 gnome-keyring 包。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值