当前位置:网站首页>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 .
边栏推荐
- 聊聊 Dart 的空安全 (null safety) 特性
- 定位到最底部[通俗易懂]
- 位运算(Bit Operation)
- 2021-01-12
- Clean C disk
- The 19th Zhejiang Provincial Collegiate Programming Contest VP记录+补题
- Introduction to redis and jedis and redis things
- V20变频器手自动切换(就地远程切换)的具体方法示例
- Solution: prompt "unsupported video format" when inserting avi format video into the message
- Brush question 5
猜你喜欢

GEE(四):计算两个变量(影像)之间的相关性并绘制散点图

UE4_UE5结合罗技手柄(F710)使用记录

iNFTnews | Web5 vs Web3:未来是一个过程,而不是目的地

Line test - graphic reasoning - 1 - Chinese character class
![[microservices SCG] gateway integration Sentinel](/img/f3/410d7228b4b253ebf41015a785099f.png)
[microservices SCG] gateway integration Sentinel

ArcGIS:字段赋值_属性表字段计算器(Field Calculator)依据条件为字段赋值

Comparison of various development methods of applets - cross end? Low code? Native? Or cloud development?

聊聊 Dart 的空安全 (null safety) 特性

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

Wechat forum exchange applet system graduation design completion (7) Interim inspection report
随机推荐
CAIP2021 初赛VP
What are the similarities and differences between smart communities and smart cities
Introduction to anomaly detection
Use JfreeChart to generate curves, histograms, pie charts, and distribution charts and display them to JSP-1
FPGA基础篇目录
三菱PLC slmp(mc)协议
Anta DTC | Anta transformation, building a growth flywheel that is not only FILA
Adrnoid开发系列(二十五):使用AlertDialog创建各种类型的对话框
What does the model number of asemi rectifier bridge kbpc1510 represent
十四、数据库的导出和导入的两种方法
Adults have only one main job, but they have to pay a price. I was persuaded to step back by personnel, and I cried all night
Install Fedora under RedHat
USB(十四)2022-04-12
oc 可变參数传递
Two kinds of curves in embedded audio development
Transform XL translation
USB(十六)2022-04-28
网络安全-对操作系统进行信息查询
Binary tree
Brush question 6