CentOS 7的yum源中貌似沒有正常安裝mysql時的mysql-sever文件,須要去官網上下載html
|
# wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpmmysql # rpm -ivh mysql-community-release-el7-5.noarch.rpmredis # yum install mysql-community-serversql |
成功安裝以後重啓mysql服務yii
# /bin/systemctl start mysql.service ide
|
# service mysqld restartui |
已廢棄spa
初次安裝mysql是root帳戶是沒有密碼的rest
設置密碼的方法server
|
# mysql -uroot mysql> set password for ‘root’@‘localhost’ = password('root'); mysql> exit |
搞定!
沒法鏈接圖形界面化:
mysql>grant all privileges on *.* to 'root'@'116.228.32.182' identified by 'root密碼'
mysql>flush privileges
redis安裝:
https://testerhome.com/topics/3887
redis入門:
http://www.yiibai.com/redis/redis_quick_guide.html
redis設置密碼:
127.0.0.1:6379> CONFIG SET requirepass "123456"