当前位置:网站首页>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 .
边栏推荐
- Wechat forum exchange applet system graduation design (2) applet function
- Mitsubishi PLC SLmP (MC) protocol
- 2021ICPC上海 H.Life is a Game Kruskal重构树
- Dynamics 365 查找字段过滤
- Kubernetes' simplified data storage storageclass (creation, deletion and initial use)
- The 19th Zhejiang Provincial Collegiate Programming Contest VP记录+补题
- Circumvention Technology: Registry
- FPGA基础篇目录
- 七月第一周
- Wechat forum exchange applet system graduation design (3) background function
猜你喜欢
PMP project management exam pass Formula-1
小程序多种开发方式对比-跨端?低代码?原生?还是云开发?
Talk about DART's null safety feature
Install a new version of idea. Double click it to open it
Database daily question --- day 22: last login
Cases of agile innovation and transformation of consumer goods enterprises
Use JfreeChart to generate curves, histograms, pie charts, and distribution charts and display them to jsp-2
Inftnews | the wide application of NFT technology and its existing problems
【刷题记录】3. 无重复字符的最长子串
The wonderful relationship between message queue and express cabinet
随机推荐
Brush question 6
Adrnoid Development Series (XXV): create various types of dialog boxes using alertdialog
Network security -burpsuit
PMP project management exam pass Formula-1
Innovation today | five key elements for enterprises to promote innovation
每日一题——PAT乙级1002题
[language programming] exe virus code example
Matlab 信号处理【问答随笔·2】
php 使用阿里云存储
ArcGIS:矢量要素相同字段属性融合的两种方法
微信论坛交流小程序系统毕业设计毕设(6)开题答辩PPT
智慧社区和智慧城市之间有什么异同
CXF call reports an error. Could not find conduct initiator for address:
USB(十四)2022-04-12
Line test - graphic reasoning - 1 - Chinese character class
Technology at home and abroad people "see" the future of audio and video technology
iNFTnews | Web5 vs Web3:未来是一个过程,而不是目的地
GEE(四):计算两个变量(影像)之间的相关性并绘制散点图
Classification and prediction of heartbeat signal
V20变频器手自动切换(就地远程切换)的具体方法示例