数据库

 首页 > 数据库 > mariadb > Linux系统编译安装MariaDB数据库服务器

Linux系统编译安装MariaDB数据库服务器

分享到:
【字体:
导读:
         摘要:MariaDB是一个采用Maria存储引擎的MySQL分支版本,是由原来MySQL的作者MichaelWidenius创办的公司所开发的免费开源的数据库服务器。本文介绍了在linxu下一个简单的安装方法(在OpenSuse下测试成功)下载页面:https://downloads.mariadb.org/ma...

Linux系统编译安装MariaDB数据库服务器
MariaDB 是 一个采用 Maria 存储引擎的 MySQL 分支版本,是由原来 MySQL 的作者 Michael Widenius 创办的公司所开发 的免费开源的数据库服务器 。

本文介绍了在linxu下一个简单的安装 方法(在OpenSuse下测试成功)
下载页面: https://downloads.mariadb.org/mariadb/5.5.31/

# tar zxvf  mariadb-5.5.31-linux-x86_64.tar.gz
# mv mariadb-5.5.31-linux-x86_64 /usr/local/mysql
# groupadd mysql                     增加 mysql 属组
# useradd -g mysql mysql     增加 mysql 用户 并归于mysql 属组
# chown mysql:mysql -Rf  /usr/local/mysql     设置 mysql 目录的用户及用户组归属。
# chmod +x -Rf /usr/local/mysql    赐予可执行权限
# cp /usr/local/mysql/support-files/my-medium.cnf /etc/my.cnf     复制默认mysql配置 文件到/etc 目录
# /usr/local/mysql/scripts/mysql_install_db --user=mysql   初始化数据 库
# cp  /usr/local/mysql/support-files/mysql.server   /etc/init.d/mysql   复制mysql服务程序 到系统 目录
# chkconfig  mysql on   添加mysql 至系统服务并设置为开机启动
# service  mysql  start  启动mysql
#vim /etc/profile   编辑profile,将mysql的可执行路径加入系统PATH
export PATH=/usr/local/mysql/bin:$PATH
#source /etc/profile  使PATH生效。
#mysqladmin -u root password 'yourrootpassword' 设定root账号及密码
#mysql -uroot -p  使用root用户登录mysql
[none]>use mysql  切换至mysql数据库。
[mysql]>select user,host,password from user; --查看系统权限
[mysql]>drop user ''@'localhost'; --删除不安全的账户
[mysql]>drop user root@'::1';
[mysql]>drop user root@127.0.0.1;
。。。
[mysql]>select user,host,password from user; --再次查看系统权限,确保不安全的账户均被删除。
Linux系统编译安装MariaDB数据库服务器
分享到:
使用chroot打造安全的LNMP多用户服务器环...
使用chroot打造安全的LNMP多用户服务器环境 lnmp发展到今日,已经相当稳定,大部分程序也都可以平滑从apache移到nginx环境下。网上流行的lnmp一键包使很多Linux初学者可以非常方便地搭建自己的网站服务器。但随着建立的网站越来越多,安全性越来越成为威胁,由于没有将用户空间进行隔离,可以很轻松的进行跨站...
Linux系统使用MariaDB替换MySQL数据库
Linux系统使用MariaDB替换MySQL数据库 于是我决定把我的所有服务器从 MySQL 迁移到 MariaDB. 对 Arch 用户来说很简单,照着官方新闻里面的来就是了: systemctl stop mysqld  pacman -S mariadb libmariadbclient mariadb-clients  systemctl start mysqld  mysql_upgrade -p  而对于 openSUSE 就...
  •         php迷,一个php技术的分享社区,专属您自己的技术摘抄本、收藏夹。
  • 在这里……