当前位置:网站首页>Archlinux install MySQL
Archlinux install MySQL
2022-07-07 23:16:00 【JUSTfFUN】
explain
Official recommendation MariaDB To replace MySQL
The following is a ArckWiki original text :
Be careful : since 2013 From the year onwards ,MariaDB I was Arch Linux As the official default MySQL Realization [1].Oracle MySQL Has been moved to AUR, It is recommended that all users upgrade to MariaDB. See this announcement .
Links to this article : ArchWiki About MariaDB
install
sudo pacman -S mariadb
install mariadb After the package , You have to start mariadb.service Run the following command before :
sudo mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysql
sudo systemctl start mariadb.service( Use start perhaps enable mariadb.service)
To configure
The default password is empty
sudo mysql -p -u root
Add new user
The following is to create a password for ’some_pass’ Of ’monty’ Examples of users , And give mydb Full operation permission :
$ sudo mysql -u root -p
MariaDB> CREATE USER 'monty'@'localhost' IDENTIFIED BY 'some_pass';
MariaDB> GRANT ALL PRIVILEGES ON mydb.* TO 'monty'@'localhost';
MariaDB> FLUSH PRIVILEGES;
MariaDB> quit
Add users according to your own needs
Enable auto completion
MySQL The client auto completion function is disabled by default . To enable it throughout the system , edit /etc/my.cnf.d/mysql-clients.cnf, stay mysql Next add to auto-rehash. Be careful : Don't put auto-rehash Written in mysqld Next , Automatic completion will be enabled the next time the client starts .
边栏推荐
- leetcode-520. 检测大写字母-js
- Adrnoid Development Series (XXV): create various types of dialog boxes using alertdialog
- turbo intruder常用脚本
- Network security - information query of operating system
- 网络安全-burpsuit
- About idea cannot find or load the main class
- Matlab-SEIR传染病模型预测
- [untitled] reprint melting ice - track icedid server with a few simple steps
- [microservices SCG] gateway integration Sentinel
- UE4_UE5蓝图command节点的使用(开启关闭屏幕响应-log-发布全屏显示)
猜你喜欢
Matlab 信号处理【问答随笔·2】
14、 Two methods of database export and import
Unity3D学习笔记6——GPU实例化(1)
Wechat forum exchange applet system graduation design completion (7) Interim inspection report
Wechat forum exchange applet system graduation design completion (4) opening report
Install a new version of idea. Double click it to open it
Line test - graphic reasoning - 1 - Chinese character class
聊聊支付流程的设计与实现逻辑
【微服务|SCG】gateway整合sentinel
Introduction to redis and jedis and redis things
随机推荐
Grid
微信论坛交流小程序系统毕业设计毕设(1)开发概要
Install a new version of idea. Double click it to open it
Gee (III): calculate the correlation coefficient between two bands and the corresponding p value
力扣解法汇总648-单词替换
ArcGIS: field assignment_ The attribute table field calculator assigns values to fields based on conditions
Unity3D学习笔记6——GPU实例化(1)
The 19th Zhejiang Provincial Collegiate Programming Contest 2022浙江省赛 F.EasyFix 主席树
UE4_UE5全景相机
系统架构设计师备考经验分享:论文出题方向
三菱PLC slmp(mc)协议
Classification and prediction of heartbeat signal
Database daily question --- day 22: last login
UE4_UE5结合罗技手柄(F710)使用记录
Wechat forum exchange applet system graduation design completion (8) graduation design thesis template
php 使用阿里云存储
海内外技术人们“看”音视频技术的未来
Unity dynamically merges mesh textures
Unity3D学习笔记5——创建子Mesh
Brush question 4