当前位置:网站首页>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 .
边栏推荐
- Database daily question --- day 22: last login
- Gee (III): calculate the correlation coefficient between two bands and the corresponding p value
- Solution: prompt "unsupported video format" when inserting avi format video into the message
- [microservices SCG] gateway integration Sentinel
- 网络安全-永恒之蓝
- Talk about DART's null safety feature
- Digital collections accelerated out of the circle, and marsnft helped diversify the culture and tourism economy!
- Unity3D学习笔记6——GPU实例化(1)
- Unity dynamically merges mesh textures
- U盘拷贝东西时,报错卷错误,请运行chkdsk
猜你喜欢
Comparison of various development methods of applets - cross end? Low code? Native? Or cloud development?
Wechat forum exchange applet system graduation design (3) background function
iNFTnews | NFT技术的广泛应用及其存在的问题
Wechat forum exchange applet system graduation design completion (1) development outline
Wechat forum exchange applet system graduation design completion (8) graduation design thesis template
微信论坛交流小程序系统毕业设计毕设(5)任务书
海内外技术人们“看”音视频技术的未来
STL标准模板库(Standard Template Library)一周学习总结
Cascade-LSTM: A Tree-Structured Neural Classifier for Detecting Misinformation Cascades-KDD2020
消息队列与快递柜之间妙不可言的关系
随机推荐
Inftnews | the wide application of NFT technology and its existing problems
Exploratory data analysis of heartbeat signal
iNFTnews | Web5 vs Web3:未来是一个过程,而不是目的地
每日一题——PAT乙级1002题
小程序多种开发方式对比-跨端?低代码?原生?还是云开发?
Gee (IV): calculate the correlation between two variables (images) and draw a scatter diagram
网络安全-对操作系统进行信息查询
The 19th Zhejiang Provincial Collegiate Programming Contest VP记录+补题
UE4_UE5结合罗技手柄(F710)使用记录
2021-01-11
Mitsubishi PLC SLmP (MC) protocol
Adrnoid开发系列(二十五):使用AlertDialog创建各种类型的对话框
[language programming] exe virus code example
二叉树(Binary Tree)
Brush question 6
UE4_UE5蓝图command节点的使用(开启关闭屏幕响应-log-发布全屏显示)
七月第一周
Wechat forum exchange applet system graduation design (2) applet function
Cascade-LSTM: A Tree-Structured Neural Classifier for Detecting Misinformation Cascades-KDD2020
Guessing game (read data from file)