install mysql at linux

Posted 吴悟无

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了install mysql at linux相关的知识,希望对你有一定的参考价值。

cd /usr/local
wget http://repo.mysql.com//mysql57-community-release-el7-7.noarch.rpm
rpm -ivh mysql57-community-release-el7-7.noarch.rpm
yum install -y mysql-server
systemctl start mysqld.service
systemctl status mysqld.service
cd /etc and vi my.cnf and add at last line:skip-grant-talbes
mysql
mysql>use mysql;
mysql>update mysql.user set authentication_string=password(yourpasswd) where user=root;
mysql>flush privileges;
mysql>exit;
systemctl start mysqld.service
mysql -u root -p 
enter yourpasswd

 

以上是关于install mysql at linux的主要内容,如果未能解决你的问题,请参考以下文章

我的Android进阶之旅Android Studio 中 使用git提交代码报错:Can‘t commit changes from multiple changelists at once(代码片

denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock.......(代码片

denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock.......(代码片

error Failed at the puppeteer@3.0.4 install script.的解决方法

error Failed at the puppeteer@3.0.4 install script.的解决方法

Android Parcelable反序列化报错笔记:java.lang.RuntimeException: Unmarshalling unknown type code at offset(代码片