当前位置:网站首页>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 .
边栏推荐
- Gee (III): calculate the correlation coefficient between two bands and the corresponding p value
- 微信论坛交流小程序系统毕业设计毕设(4)开题报告
- Two kinds of curves in embedded audio development
- js 获取对象的key和value
- 智慧社区和智慧城市之间有什么异同
- Bit operation
- Network security - install CentOS
- 2021ICPC上海 H.Life is a Game Kruskal重构树
- Guessing game (read data from file)
- Cases of agile innovation and transformation of consumer goods enterprises
猜你喜欢

PMP项目管理考试过关口诀-1

U盘拷贝东西时,报错卷错误,请运行chkdsk

Talk about DART's null safety feature

JMeter interface automated test read case, execute and write back result

【编译原理】词法分析设计实现

Gee (IV): calculate the correlation between two variables (images) and draw a scatter diagram

ArcGIS:矢量要素相同字段属性融合的两种方法

微信论坛交流小程序系统毕业设计毕设(8)毕业设计论文模板

2021ICPC上海 H.Life is a Game Kruskal重构树

iNFTnews | Web5 vs Web3:未来是一个过程,而不是目的地
随机推荐
Redhat下安装fedora
Exploratory data analysis of heartbeat signal
微信论坛交流小程序系统毕业设计毕设(7)中期检查报告
Network security - phishing
Gee (III): calculate the correlation coefficient between two bands and the corresponding p value
[record of question brushing] 3 Longest substring without duplicate characters
网络安全-beef
Database daily question --- day 22: last login
JS triangle
网络安全-钓鱼
Cascade-LSTM: A Tree-Structured Neural Classifier for Detecting Misinformation Cascades-KDD2020
USB(十四)2022-04-12
2021-01-12
PMP项目管理考试过关口诀-1
Mitsubishi PLC SLmP (MC) protocol
Adrnoid开发系列(二十五):使用AlertDialog创建各种类型的对话框
系统架构设计师备考经验分享:论文出题方向
FPGA基础篇目录
OC variable parameter transfer
Use JfreeChart to generate curves, histograms, pie charts, and distribution charts and display them to JSP-1