Linux安装MariaDB(Mysql)和简单配置
生活随笔
收集整理的這篇文章主要介紹了
Linux安装MariaDB(Mysql)和简单配置
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
安裝MariaDB
yum -y install mariadb mariadb-server
systemctl start mariadb
systemctl enable mariadb
mysql_secure_installation
- 首先是設置密碼,會提示先輸入密碼
- 設置密碼
mysql -uroot -ppassword
添加用戶,設置權限
創建用戶命令
mysql>create user username@localhost identified by 'password';
mysql>grant all on *.* to username@localhost indentified by 'password';
mysql>grant all privileges on *.* to username@'%' identified by 'password';
mysql>grant all privileges on *.* to username@'hostname' identified by 'password' with grant option;
刷新權限
flush privileges;
轉載于:https://www.cnblogs.com/larryzq/p/11009048.html
總結
以上是生活随笔為你收集整理的Linux安装MariaDB(Mysql)和简单配置的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Web高效管理多个项目的SVN仓库
- 下一篇: LeetCode 876 Middle