OpenSuse安装MariaDB

来源:互联网 发布:mac 磁盘工具找回照片 编辑:程序博客网 时间:2024/05/20 08:27

采用中国科学技术大学开源软件镜像
主页:http://mirrors.ustc.edu.cn/
OpenSuse 软件源设置方法:https://lug.ustc.edu.cn/wiki/mirrors/help/opensuse

切换到root账户

lee@linux-kl3c:~> su root
密码:

安装MariaDB

linux-kl3c:/home/lee # zypper install -y mariadb*

启动mysql服务

linux-kl3c:/home/lee # service mysql start

修改密码:参考 http://jingyan.baidu.com/article/0320e2c198ad5f1b87507bc8.html

linux-kl3c:/home/lee # mysqladmin -u root password 1234

登入

lee@linux-kl3c:/> mysql -u root -p
Enter password:

登入成功

Welcome to the MariaDB monitor. Commands end with ; or \g.
Your MariaDB connection id is 7
Server version: 10.0.25-MariaDB SLE 12 SP1 package
Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.
Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.
MariaDB [(none)]>

0 0
原创粉丝点击