[DB]MariaDB 与 MySql 数据库

目前 MariaDB 已经出来几年了,本文编辑时的官网最新稳定版本是 10.1.14 链接:https://downloads.mariadb.org/

但百度没有下载,搜狗给的下载版本是 5.5.23,MariaDB 的官网下载链接在浏览器里提示连接不到目标。

MySql 已经放慢了更新的脚步,而且有商业化的可能。

MariaDB 绿化安装方式:http://jingyan.baidu.com/article/59a015e352b775f795886553.html

Centos 7 下安装命令:(需联网下载 147M 的安装文件)

Here is your custom MariaDB YUM repository entry for CentOS. 

Copy and paste it into a file under /etc/yum.repos.d/ (we suggest naming the file MariaDB.repo or something similar). # MariaDB 10.1 CentOS repository list - created 2016-07-13 02:43 UTC # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.1/centos7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1 After the file is in place, install MariaDB with: sudo yum install MariaDB-server MariaDB-client

转自:https://downloads.mariadb.org/mariadb/repositories/#mirror=neusoft&distro=CentOS&distro_release=centos7-amd64--centos7&version=10.1

转自:http://www.linuxidc.com/Linux/2015-03/114287.htm

具体配置等操作可见:http://blog.csdn.net/renfufei/article/details/17616549

更多安装配置步骤:https://blog.csdn.net/zhezhebie/article/details/73549741

第一步 关闭防火墙或者打开 3306 tcp 端口

第二步 mysql -u root -p  然后录入密码

第三步 grant all privileges on *.* to 'root'@'%' IDENTIFIED BY 'passwd' with grant option;

在终端执行这个命令,使得 mysql 允许外部IP 访问,访问的用户是 root 密码 passwd

第四步 刷新配置 flush privileges;

开关 mysql 的大小写敏感

用root帐号登录后,在/etc/my.cnf 中的[mysqld]后添加添加 lower_case_table_names=1,重启MYSQL服务,这时已设置成功:不区分表名的大小写;
lower_case_table_names参数详解:
lower_case_table_names = 0 
其中 0:区分大小写,1:不区分大小写

查看这一设置,可以使用 show variables like '%case%';

posted on 2016-06-17 09:34  z5337  阅读(162)  评论(0编辑  收藏  举报