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. 最后查看字符集

完成。

sql语句。Python是一种计算机程序设计语言猜慎,由荷厅历兰数学和扮兆搜计算机科学研究学会的GuidovanRossum设计,提供了高效的高级数据结构,能简单有效地面向对象编程,要安装mariadb的模块需要执行sql语句。mariadb是MySQL的一个分支。

mariadb 10.1.8 32&64位最新版http://www.ddooo.com/softdown/69303.htm

mariadb安装图解和配置方法

一、mariadb下载

1、打开官方网站:https://downloads.mariadb.org/ 如下图点击download下载;

2、进入下载界面后选择版本号,目前最新版本为10.0.19,小编以64位的zip文件为例;

3、下载之后解压到一个目录,注意路径都是英文的,不要放到含有中文誉或汉字的文件夹中,影响使用。

二、mariadb配置

打开解压目录,然后找到my-large,my-medium,my-small这三个文件,根据你的电脑的配置进行选择,我这里选择的是my-large文件。

右击编辑

[client]

#password =

port = 3306

socket = /tmp/mysql.sock

default-character-set=utf8(这个需要自己添加)

添加目录(这里的目录是你的解压目录):

[mysqld]

port = 3306

socket = /tmp/mysql.sock

basedir=E:/Softwear/mariadb-10.0.10-winx64 (这个需要自己添加)

datadir=E:/Softwear/mariadb-10.0.10-winx64/data (这个需要自己添加)

default-character-set=utf8 (这个需要自己添加)

default-storage-engine = MyISAM

在文件的最后在添加上:

[mysqlhotcopy]

interactive-timeout

[WinMySQLAdmin] (这个需要自己添加)

Server=E:\雀旦Softwear\mariadb-10.0.10-winx64\bin\mysqld.exe (这个需要自己添加)庆岁伍

单击文件——另存为——文件名为my.ini。将文件复制到C盘的system目录下即可。

三、mariadb安装和启动

在开始菜单输入cmd,右击以管理员身份运行,运行后将执行目录cd到你的问价解压目录中的bin目录中,例如我的解压在E:\Softwear\mariadb-10.0.10-winx64:

输入 e: 回车

输入 cd E:\Softwear\mariadb-10.0.10-winx64\bin 回车即可跳转到bin目录。

完成上面的步骤之后就可以开始安装服务和启动服务了。

输入 mysqld.exe --install MariaDB

等待成功后,输入 net start MariaDB 即可启动服务开始你的mariadb之旅了。

另外,删除的时候也很简单,输入mysqld.exe --remove MariaDB即可。


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

原文地址: https://outofmemory.cn/tougao/12385475.html

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

发表评论

登录后才能评论

评论列表(0条)

保存