- download RPM:
- wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm
- install RPM :
- rpm -ivh mysql57-community-release-el7-11.noarch.rpm
- Use Aliyun Mirrors :
- wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
-
-
Clean cache and recache : yum clean all ; yum makecache
-
Install MySQL : yum -y install mysql-community-server
- restart mysql service: systemctl restart mysqld
- chacke service status: service mysqld status
-
use cat or vi /var/log/mysqld.log check mysql auto generate password
15.login mysql use :mysql -u root -p
16.change defualt password: set password for root@localhost = password(‘Your@pwd123‘);
17.If you forget password ,you can user select command find it;
18.About password : if the service error log no temp password ,you must be edit /etc/my.cnf .
19. vim /etc/my.cnf
20.skip-grant-tablesAsystemctl restart mysqld
相关文章
- 04-08file xxx from install of xxx conflicts with file from xxx
- 04-08ML学习笔记之Anaconda中命令形式安装XGBoost(pip install)
- 04-08什么是’动作android:name =“com.android.vending.INSTALL_REFERRER”’?
- 04-08Visual Studio2015 Community一些必备插件
- 04-08bower install和cnpm install
- 04-08freebsd make install openjdk6
- 04-08The program 'yum' is currently not installed. You can install it by typing:
- 04-08poetry install报错,提示“relative path can‘t be expressed as a file URI”
- 04-08npm install 安装报错,Unhandled rejection RangeError: Maximum call stack size exceeded
- 04-08使用easy_install在Cocoa应用程序中捆绑python工具