您好,登錄后才能下訂單哦!
Centos7安裝Mysql
wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
ls /etc/yum.repos.d/
yum repolist all | grep mysql
yum install mysql-server
rpm -qa | grep mysql
systemctl start mysql
systemctl restart mysql
systemctl stop mysql
systemctl enable mysql
mysql -u root
mysql> use mysql;
mysql> update user set password=PASSWORD("這里輸入root用戶密碼") where User='root';
mysql> flush privileges;
mysql> GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY "123456";
mysql>show grants for root@'%';
firewall-cmd --add-port=3306/tcp --permanent
firewall-cmd --reload
免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。