Linux Deploy Ubuntu 20.04 安装 mariadb

Linux Deploy Ubuntu 20.04 安装 mariadb,第1张

1.安装mariadb-server

2.运行mysql_install_db

正常运行完成后可以看到如下:

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 localhost 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/

3. 给mysql用户配置权限

4. 启动mariadb

5. 运行mysql_secure_installation

6. 更改字符集

7. 最后查看字符集

完成。

成品图大概长这样( ω )

安装类型也可以选文件,不过因为我选文件安装老是失败所以选了目录

配置好以后点右上角然后再点安装,然后就看人品了!!希望你能一次安装成功<-.->

从报错信息看好像是权限的问题,但是我是以root启动的,后来看到国外大神的 Tutorial ,才知道在手机上运行postgresql要把它加入网络白名单

设置好配置,进行安装时报以下错误

打开调试模式后

点击右下角设置按钮,将安装类型设置为 "目录",返回重新安装可以成功

参考文章:

https://cloud.tencent.com/developer/article/1159800

https://pluhuxc.github.io/2020/10/23/linuxdeploy-guide.html

https://www.tkdcz.top/post/48.html


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/yw/7385880.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2023-04-05
下一篇2023-04-05

发表评论

登录后才能评论

评论列表(0条)

    保存