- 尋找\support-files\mysql.server
- 複製或建軟連結 -> /etc/init.d/[服務名稱]
- chkconfig mysql
- #systemctl start mysql
- # sh ..../mysqld_safe.sh --default-file=/etc/my.cnf &
- # sh ..../support-files/mysql.server start/stop
- # mysqladmin -u root -p shutdown
2019/6/3
MariaDB (2) - tar.gz壓縮檔安裝
2019/6/2
MariaDB (1) - RPM安裝
- # rpm -qa | grep -i mariadb
- # rpm -ev 组件名
- # /etc/yum.repos.d/MariaDB.repo
- # MariaDB 10.1 CentOS repository list - created 2017-01-27 16:31 UTC
- # http://downloads.mariadb.org/mariadb/repositories/
- [mariadb]
- name = MariaDB
- baseurl = http://yum.mariadb.org/10.3.15/centos7-amd64/
- gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
- gpgcheck=1
- # yum install MariaDB-server MariaDB-client
- # systemctl start mariadb
- # systemctl enable mariadb
- # /usr/bin/mysqladmin -u root password 'new-password'
- # /usr/bin/mysql_secure_installation
- # 輸入目前的 root 密碼,直接輸入剛剛設定的密碼
- Enter current password for root (enter for none):
- # 是否變更 root 密碼,因為是剛設定 應該不用變更了
- Change the root password? [Y/n]
- # 是否移除匿名帳號,按下 y 選擇移除
- Remove anonymous users? [Y/n]
- # 是否拒絕遠端使用 root 權限登入
- # 依照個別需求,沒特別需要遠端管理就按 y 吧
- Disallow root login remotely? [Y/n]
- # 是否移除 test 這個測試資料庫,和相關權限
- 沒有需求就移除吧
- Remove test database and access to it? [Y/n]
- # 是否重新載入權限資料表,按 y
- Reload privilege tables now? [Y/n]
訂閱:
文章 (Atom)