设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 技术文摘 查看内容

Linux 环境下快速部署 MySQL 的替代方案

2013-9-3 11:09| 发布者: 红黑魂| 查看: 3635| 评论: 0|来自: 51CTO

摘要: MariaDB名称来自Michael Widenius的女儿Maria的名字。图1 是MariaDB 的LOGO: 图1 MariaDB 的LOGO MariaDB 下载:https://downloads.mariadb.org/ MariaDB 网站:http://www.mariadb.org/ MariaDB最新稳定版为:Mar ...

三 Mariadb的root密码的重新设置

首先停止数据库服务器进程:

  1. # service mysql stop 

安全模式启动:

  1. # mysqld_safe --skip-grant-tables & 

登录MariaDb server:

  1. # mysql -u root 
  2. Welcome to the MariaDB monitor. Commands end with ; or \g. 
  3. Your MariaDB connection id is 1 
  4. Server version: 5.5.32-MariaDB MariaDB Server 
  5. Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others. 
  6. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. 

设置密码:

  1. MariaDB [(none)]> update mysql.user set password=PASSWORD("newpassword") where User='root'
  2. Query OK, 4 rows affected (0.00 sec) 
  3. Rows matched: 4 Changed: 4 Warnings: 0 

授权后退出:

  1. MariaDB [(none)]> flush privileges; 
  2. Query OK, 0 rows affected (0.00 sec) 
  3. MariaDB [(none)]> exit; 
  4. Bye 

重新启动数据库进程:

  1. # service mysql restart 

使用新密码登录:

  1. # mysql -u root -p 
  2. Enter password: 
  3. Welcome to the MariaDB monitor. Commands end with ; or \g. 
  4. Your MariaDB connection id is 1 
  5. Server version: 5.5.32-MariaDB MariaDB Server 
  6. Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others. 
  7. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. 

总结:

MariaDB 基本上名门之后,加上MySQL创始人Monty的实力和号召力,是作为MySQL一个非常好的替代品,

前途发展无限,值得我们尝试使用。二者的常用工具,连接程序都可以如常运作。你也不需要导出和汇

入数据。格式与文件名都是相同的。


酷毙

雷人

鲜花

鸡蛋

漂亮
  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部