centos 7 mariadb
来源:互联网 发布:免费的数据恢复工具 编辑:程序博客网 时间:2024/06/02 00:50
服务无法启动.删除 mariadb,mariadb-server. 删除 /var/lib/mysql 和 /etc/my.cnf 重新安装
开机启动
systemctl enable mariadb
服务启动
systemctl start mariadb
(status restart stop)
初始化:
mysql_secure_installation
之后按照提示操作
开放端口:
firewall-cmd --zone=public --add-port=3306/tcp --permanent firewall-cmd --reload
链接:
mysql -h host -u user -P port -p
创建用户:
insert into mysql.user(Host,User,Password) values("localhost","test",password("1234"));
授权:
grant select,delete,update,create,drop on *.* to test@"%" identified by "1234"; grant select,update on testDB.* to test@localhost identified by '1234'; GRANT ALL PRIVILEGES ON *.* TO 'admin'@'%' IDENTIFIED BY 'somepass' WITH GRANT OPTION;
刷新系统权限表:
flush privileges;
utf8:
vi /etc/my.cnf
[mysqld]character-set-server = utf8collation-server = utf8_general_ciskip-character-set-client-handshake
其他:
show databases;
use xxx;
show tables;
阅读全文
0 0
- centos 7 MariaDB 开始
- centos 7安装MariaDB
- CentOS 7 安装MariaDB
- Centos 7 安装MariaDB
- centos 7 mariadb
- Install MariaDB on CentOS 7
- linux centos 7安装 mariadb
- CentOS 7下安装MariaDB
- Centos 7安装配置MariaDB
- CentOS 7 安装 MariaDB 10.1
- centos,mariadb
- centos 7 使用 yum 安装MariaDB数据库
- CentOS 7 安装mysql的替代品 mariadb
- CentOS 7卸载mariadb安装mysql
- CentOS 7 安装 mariaDB 详细步骤
- CentOS 7 YUM安装MariaDB 10.1
- CentOS 7 安装Mariadb 及详解
- MariaDB-10.1 Galera Cluster on CentOS 7
- 数据库事务管理
- Atitit 财政支出学习心得 attilax总结
- Atiitt 经济学的一些重要定理 定律 原理 原则 法则
- 网络流建模(二)
- Atitit diy战略 attilax总结
- centos 7 mariadb
- Lua中的三目运算符
- 28 Three.js的特殊光源THREE.HemisphereLight户外光照光源
- hibernate的实体类双向关联转json报错之死循环解决方案
- OC字符串和数值
- scala
- 二分
- Reverse Linked List II
- AC自动机(HDU 2222: Keywords Search)